Some times we need insert into select statement for tables from one database to other database. Here is the script which will create the script for this process.
How to get size info for database file using dbcc showfilestats
CREATE TABLE freefilespace
(
fileid INT,
filegroup INT,
totalextents INT,
usedextents INT,
dbname VARCHAR(256),
filename VARCHAR(2000)
)
Undocumented Commands
Note:-All the samples here are run against AdventureWorks sample DB
DBCC proccache
Provides procuedure cache information
DBCC proccache
Provides procuedure cache information
lets play with XML
Here is Nested XML which contains data from 2 tables ,Customer and Order
I want to get data for this 2 tables from XML
I want to get data for this 2 tables from XML
Subscribe to:
Posts (Atom)
Popular Posts
-
sp_addlinkedsrvlogin To modify or add new login for linked server
-
Recently we had hardware and performance issues on SQL Server,with our client , so while monitoring the system we also looked at error ...
-
Recently I got a problem where Builtin\Administrators Account was deleted . How can we recreate it? Here is a solution for this Run th...
-
As we all are aware with the variables in SSIS, which is used for holding custom values and assign to various properties of objects at run...
-
Recently I got a mail for following problem While the client tries to open registered server window in Mbanagement Studio he gets follow...
-
Various way to calculate running total from All period to currentmember As MDX is a very vast and dynamic language we can write same quer...
-
Many time we need to do runing sum of value. In SQL 2oo5 we can do it with use of CTE
-
sp_purge_jobhistory We can use this procedure to delete old history for jobs.
-
For every Developer and DBA index maintenance is very important task. Since the changing ...
-
Index are very important part for any database. We need to regularly monitor index and maintain index for better performance of the system...