how can i see all the scheme in the sql server 2000 [duplicate] - sql

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How do I obtain a list of all schemas in a Sql Server database
I manage to see all the schemas in the sql server 2000. I used the following statement
show search_path
But it failed.

Please try:
SELECT * FROM INFORMATION_SCHEMA.SCHEMATA
For more info please refer link How do I obtain a list of all schemas in a Sql Server database

Related

See all the SQL statements executed in Oracle DB 12c [duplicate]

This question already has answers here:
How can I see queries that are executed against Oracle?
(3 answers)
Closed 5 years ago.
I'm an administrator of DB with DBA role. So I need to gather all the SQL statements executed in DB in all sessions. Does anyone know if there is a command that shows a list of username and SQL statement executed by him? Thanks in advance.
The closest thing you can get to that is by querying DBA_HIST_ACTIVE_SESS_HISTORY.
If sessions did not matter to your requirements, you could query DBA_HIST_SQLSTAT.
both required diagnostic pack license

SQL Server 2012 Invalid Column Name? [duplicate]

This question already has answers here:
sql server invalid object name - but tables are listed in SSMS tables list
(19 answers)
Closed 8 years ago.
Does anybody know why SQL Server 2012 shows these as invalid column names even though I know they are valid and the query executes successfully? Intellisense also doesn't show me the column names as I type them out either.
Press CTRL+SHIFT+R to refresh intellisense cache

Search whole database instead of single table [duplicate]

This question already has answers here:
Find a value anywhere in a database
(18 answers)
Closed 8 years ago.
I want to find a number or string in a very large database. Is there any way to make an SQL Query that searches the entire database, and not just a single table?
I'm looking for something like:
select * from *;
If you are using SQL Server this post from kd7 might be what you're looking for:
How do I find a value anywhere in a SQL Server Database?

View the query by which a table was created in SQL Server 2000 [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to see query history in SQL Server Management Studio
I have created a table by create command in sql server, I executed the query from query analyzer and then I closed the query analyzer. Now I want to see that query by which I created the table how can I do it?
Right-click on the Table in your Object Explorer and select Script Table as... -> CREATE to -> New Query Editor Window.
In general - NO. But you can get just similar script by various scripting modules, including supplied with Sql Server 2000 (Enterprise Manager and Query Analyzer Script Table as context menu)
OR
exec sp_help 'tablename'
May provide you sufficient information for your needs

sql transfer data between databases tsql [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
SQL Data Transfer
I have my Dev database, and some times I add some data to tables and I want to upload it to prod. Is there a tool that allows transferring data between 2 databases?
Assuming MS SQL
bcp Utility
OR
SQL Server Import and Export Wizard
In addition to alex's choices you can use linked servers or SQL Data Compare by Redgate.