Viewing 15 posts - 226 through 240 (of 427 total)
You can use the DNS name of the computer (mySQL.Mydomain.com) or it's IP address (10.1.1.1).
(local) is only when logged into the SQL Server computer, this is a built-in alias for the...
November 23, 2005 at 10:23 pm
Search for "text and image functions" in books online (BOL):
SET TEXTSIZE, UPDATETEXT, WRITETEXT, DATALENGTH, PATINDEX, READTEXT, and TEXTPTR
Examples
This example reads the second through twenty-sixth characters of the...
November 21, 2005 at 11:18 pm
Try searching for Pivot, there are many examples, choose the one that fits your situation like:
http://www.sqlservercentral.com/scripts/contributions/204.asp
or
http://www.sqlservercentral.com/scripts/contributions/506.asp
Andy
November 21, 2005 at 11:07 pm
Looks like you have a space in the SQL Login name: ID=Theresa Kadlubowski
Try: ID=[Theresa Kadlubowski]
Or recreate the Login without a space, see rules for identifiers in SQL Server books online...
November 21, 2005 at 11:00 pm
My guess is that you want to use NORECOVERY instead of STANDBY for the database restore, then NORECOVERY for each differential restore, then STANDBY for the log restores.
I do not...
November 21, 2005 at 10:50 pm
You state "backup file" however your backup statement is for a "backup device" otherwise you would use the TO FILE, not just TO in your backup statement.
So I am...
November 21, 2005 at 10:34 pm
Add PRINT @sql to see the resulting string, I'll bet it has to do with the parameters @GenericColumn or @GenericValue.
Andy
November 21, 2005 at 2:14 am
If you must use a non standard date format, then:
declare @date datetime
set @date = '16/Aug/2004 1:05:00 PM'
select convert(varchar,CAST(REPLACE(@date,'/',' ') AS datetime), 112) AS ISO
select convert(varchar,CAST(REPLACE(@date,'/',' ') AS datetime), 120)...
November 20, 2005 at 11:41 pm
John,
Thanks for responding. I understand the legacy situation for the mssearch.exe, sorry for calling it Index Server. Glad to hear that this security hole has been addressed in SQL05.
Yes the...
November 18, 2005 at 6:01 pm
John,
Do you have a clue why the Scheduled Tasks application uses the SYSTEM account to login to SQL Server when it runs a task?
I found this after deleting the...
November 18, 2005 at 8:29 am
Great work Jan,
I had some issues with the T-SQL so changed the function a little:
CREATE FUNCTION fn_IncString (@String varchar(6))
RETURNS varchar(6)
AS
BEGIN
DECLARE @C smallint,@Return varchar(6)
SELECT @C=ASCII(RIGHT(@String,1))
IF @C=90
SELECT...
November 18, 2005 at 6:45 am
ANSI is :
CREATE TABLE Tables (TableName varchar(128), Rows int)
EXEC sp_MSforeachtable 'EXEC (''INSERT INTO Tables (TableName,Rows) SELECT TableName = ''''?'''', Rows = COUNT(*) FROM ?'')'
SELECT * FROM Tables
DROP TABLE Tables
Andy
November 18, 2005 at 5:56 am
By definition a CSV file has the comma Column delimiter and the CRLF (CHAR(13)+CHAR(10)) Row delimiter. Using anything else makes it no longer a CSV file.
Anyway the DTS Export to...
November 18, 2005 at 5:46 am
Try:
SELECT newPostSR.postid,newPostSR.subject,newPostSR.nam
, newPostSR.replies,newPostSR.views,newPostSR.dt
, ISNULL(ReplySR.ReplyID,'-') AS ReplyID
, ISNULL(ReplySR.Name,'-') AS r_name
, ISNULL(ReplySR.dt,'-') AS r_date
FROM newPostSR
LEFT JOIN (SELECT R.PostID,R.ReplyID,R.Name,R.dt
FROM ReplySR AS R
LEFT JOIN (SELECT PostID,...
November 18, 2005 at 5:33 am
Why create a flat file table that will be very hard to maintain? Here is a better design alternative
CREATE TABLE #Pics (ImageID int identity, ID varchar(10)
, Picture varchar(256), Thumbnail...
November 18, 2005 at 4:47 am
Viewing 15 posts - 226 through 240 (of 427 total)