Viewing 15 posts - 16 through 30 (of 54 total)
Yes its true practically as you are de allocating
cursor in the end of first cursor.
So the cursor can be used once again.
February 8, 2013 at 5:40 am
Can You please specify the error message you receive .
February 8, 2013 at 2:34 am
You can also try to defragment indexes as fragmentation may have increased for indexes
Rebuild or Reorganize indexes to improve their performance.
February 7, 2013 at 3:10 am
I Think you should learn about the temporary tables created for
#inserted
#deleted so as to maximize their utilization for your task.
these are part of auditing triggers.
February 5, 2013 at 12:16 am
hey this is how it works.
what are your issues with this type of script generation as it is works well
for the object creation.
January 31, 2013 at 6:09 am
As per my Findings no cause constraints are related to one another
if created earlier will cause the script to fail.
January 30, 2013 at 5:47 am
If you are using an identity column on your SQL Server tables, you can set the next insert value to whatever value you want. An example is if you wanted...
January 22, 2013 at 12:14 am
DDL statements are logged in Server Log
beside this you can also refer this link for additional information
http://msdn.microsoft.com/en-us/library/ms180892(v=sql.105).aspx
January 14, 2013 at 11:52 pm
YOu can either come up with a procedure for this
where you pass database name as a parameter
or you can
modify the query
SELECT 'USE Serv DROP TABLE [' + SCHEMA_NAME(schema_id)...
December 14, 2012 at 12:00 am
See your error shows that user donot have permission to execute FULLTEXT
so you can give permission for the same.
refer to this link for further reference
December 13, 2012 at 11:03 pm
Two ways to do this are
1. to use exec MS_FOReachDB
2. to use cetnral management server.
December 13, 2012 at 10:59 pm
CTE can be modified to select non duplicate values .
Please Refer,
http://msdn.microsoft.com/en-us/library/ms190766(v=sql.105).aspx
December 13, 2012 at 4:48 am
WITH CTE (
[ColumnName]
,[DuplicateCount]
)
AS(
SELECT
[ColumnName]
,[DuplicateCount]
,ROW_NUMBER() OVER(PARTITION BY [ColumnName]
ORDER BY [ColumnName]
AS DuplicateCount
FROM sample_table
)
DELETE
FROMCTE
WHERE (DuplicateCount > 1)
I think this an efficient way.
December 13, 2012 at 3:01 am
See you can also try to give access permission on master and grant on sp_executesql..
December 13, 2012 at 12:49 am
Viewing 15 posts - 16 through 30 (of 54 total)