I have a database xyz and need to get all the table names, its column names and its length.
- Which DMV should I use?
- Is there a DMV...
Found out the following:
In Restore Option:
If the source database has AUTO_CLOSE off, after restoring to Express edition, the AUTO_CLOSE is still...
I have this .mdf file which is being generated by a different team.
The database on their side has AUTO_CLOSE as OFF.
But once I...
I finally figured out where to set the environment variable (Project -> properties ->Deploy ->Sql Command Variable file ->Edit ->Here gave Variable...
Thanks FrankKalis. Good to finally hear that there is a way to get this information.
How do I identify this using SQLCMD?
Another thing I can do is to get the current post deployment script directory (eg: E:\DBProj\Post_Deployment\ ) and use the same path for the flat...
sp_configure 'xp_cmdshell', 1;
EXEC master..xp_cmdshell 'bcp test.dbo.table1 in "Data_FlatFile.txt" -f...
I'm executing the bcp command from within xp_cmdshell.
The reason why I'm using the xp_cmdshell command is because I want to include bcp command in...
I have a bcp command that loads data from a flat file into a table.
Currently I'm using the following bcp command for it:
1. Just because the database tempdb has "ALLOW_SNAPSHOT_ISOLATION" as ON, does it mean that for the whole database the isolation level SNAPSHOT will...
The database I'm working on is in SQL SERVER 2008 and has SNAPSHOT isolation ON (See below).
This was set by executing the following:
I have this stored procedure that throws "Snapshot isolation transaction aborted due to update conflict".
Which SQL Profiler event should I turn on...
Forgot to mention that I'm running SQL SERVER 2008 EXPRESS EDITION in Windows 7 operating system.
Question 1:I have this read only database against which I'm running couple of queries to record their response time.
Inspite of data being...
I ran sql profiler with Template as "TSQL_Duration" for a stored procedure(A) which inturn calls couple of other stored procedures(B,C,D)...
Addition to the above questions:
Below query to identify dirty pages, returns back with count as 5.
select count(page_id) as 'dirty pages'
Latest elapsed time:
1. Left my SSMS unused for 1/2 hour
2. DBCC FREEPROCCACHE
3. Executed my query. It...
How do I find that out?
I'm running SQL SERVER 2008 EXPRESS EDITION in Windows 7 operating system.
I see some vague results...
Separate names with a comma.