Viewing 15 posts - 946 through 960 (of 1,109 total)
I do not think you can do this. One nice thing about FOR XML is that it produces well-formed XML . Having an &...
September 6, 2007 at 3:55 am
This is indeed weird. Dropping a table that has a foreign key referencing itself is allowed, and there should not be a warning. Only foreign keys from other tables are...
September 6, 2007 at 2:16 am
The very first thing probably is to run SQL Server 2005 Upgrade Advisor. It detects a lot of things such as using new reserved keywords (e.g. pivot).
Regards,
...
September 6, 2007 at 2:06 am
Once you are using ntext, text and image columns there is no real limit to their combined lengths. Each of them can be about .5GB, 1GB, 1GB respectively. They are...
September 6, 2007 at 1:58 am
Hi Michelle,
OPENROWSET accepts only string literals as the filepath, so you would need to construct this query dynamically, something like:
CREATE PROC insertBulk ( @filename NVARCHAR(260) ...
September 6, 2007 at 1:49 am
Which table are you deleting from?
The delete statement has two from clauses. The first one specifies the table you are deleting from, the second is for the conditions. You can...
September 5, 2007 at 7:48 am
If the data is over 8K, and you want to store it in the db, then text and ntext can work for you. Jeff is right however, that it is...
September 5, 2007 at 6:44 am
Identity columns are really good as primary keys. They are small, and keeping an index small results in faster searches. However, whether identity columns should be part of the clustered...
September 5, 2007 at 5:40 am
sp_permissions is not a system stored procedure shipped by MS. However an updated version of it you can find on: http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=146&messageid=251338
Regards,
Andras
September 5, 2007 at 3:31 am
You could use dynamic SQL like:
DECLARE @query NVARCHAR(4000)
SET @query = 'Select * From ' + @server + '.DB1.dbo.Table1 '
EXECUTE ( @query )
Regards,
Andras
September 5, 2007 at 2:41 am
Your only choice is to use BLOBS. These are the text, ntext and image datatypes. For text it is ntext and text. See http://msdn2.microsoft.com/en-us/library/aa174534(SQL.80).aspx
Regards,
Andras
September 5, 2007 at 1:39 am
Wow, I really like it , Thanks Peter.
One small note about it: it seems to require 'Ad Hoc Distributed Queries' to be set, which...
September 5, 2007 at 1:31 am
You will need to shrink the tempdb manually.
dbcc shrinkdatabase (tempdb, 'target percent')
Andras
September 4, 2007 at 10:41 am
I've just found an article by Andy Warren that may be useful (the result is the same)
http://www.sqlservercentral.com/columnists/awarren/profilerloggingresultstoatable.asp
Regards,
Andras
September 4, 2007 at 10:30 am
Ken,
As far as I know with sp_trace_create you cannot write to a table directly. One way around it is if you write to a file, stop the trace using sp_trace_setstatus,...
September 4, 2007 at 10:26 am
Viewing 15 posts - 946 through 960 (of 1,109 total)