Viewing 15 posts - 2,776 through 2,790 (of 3,543 total)
You cannot use the words True/False as they are reserved words in SQL. The nearest you can get to your requirement is to check against character representation of True/False
select *...
February 19, 2004 at 7:14 am
Same thing but using PATINDEX
SELECT mt.description, kw.keyword
FROM MainTable mt
INNER JOIN KeyWords kw
ON PATINDEX ('%' + kw.keyword + '%',mt.description) > 0
February 19, 2004 at 6:50 am
![]() | will this work on MS SQL SERVER 2000? |
Yes, but change the first SELECT to
SELECT b.[Client ID],b.[Course Date],b.[Course ID]...
February 19, 2004 at 6:14 am
What is [Course Code], is it meant to be [Course ID], if so then
SELECT [Client ID],[Course Date],[Course ID]
FROM [Course Bookings] b
INNER JOIN (SELECT [Client ID],MAX([Course Date]) AS [Course...
February 19, 2004 at 5:59 am
Identity columns can be one of decimal, int, numeric, smallint, bigint, or tinyint, a number by definition. They are normally assigned when a table is created, eg
CREATE TABLE [tablename] (rowid...
February 18, 2004 at 9:38 am
Thanks for the replies. Having never done log shipping I was interested to know. At least I know for the future. Never liked replication since had horrible time with 6.5,...
February 18, 2004 at 4:18 am
Can someone explain how Log Shipping satisfies the 'you can lose no more than 15 minutes of data in a real disaster' requirement unless you are going to 'Log Ship' the database every...
February 18, 2004 at 2:55 am
Yes, use an Excel connection. When you apply the transformation sql will know whether yopu want to input or output. Several things to watch out for. The worksheet must exist...
February 18, 2004 at 2:22 am
bcp databasename..tablename in textfilename /c /t "," /r "\n" /S servername /U username /P password
This will insert data from a standard comma separated text file
For further info see BOL (Books...
February 17, 2004 at 9:17 am
Try changing
case when @ColOrder < @MaxCol then ', '
to
case when @ColOrder < @MaxCol then '+'',''+ '
February 17, 2004 at 7:56 am
Be careful with Excel inport with DTS. It does not like mixed data in the same column (ie numbers and text). It will take the first row data as indication of...
February 17, 2004 at 7:15 am
SELECT 'INSERT INTO VALUES (' +
CAST(intcol as varchar) + ',' +
'''' + varcharcol + ''',' +
'''' + CONVERT(varchar,datetimecol,120) + '''' +
')'
FROM
Or do...
February 17, 2004 at 7:01 am
Add a IDENTITY column, sql will automatically increment the column when new rows are inserted.
February 17, 2004 at 6:54 am
Try this
select 'sp_addlogin ''' + a.name + ''',@sid=',a.sid,',@passwd=',
CONVERT (VARBINARY (32), a.password),',@encryptopt=''skip_encryption''' + char(13) + 'GO'
FROM syslogins AS a
INNER JOIN maxprod.dbo.sysusers AS p
ON a.name = p.name...
February 17, 2004 at 6:27 am
Mmmm. Must admit only done this in testing, mind you I would be happy if this was the only mistake I made, you should see some of my big faux...
February 17, 2004 at 2:42 am
Viewing 15 posts - 2,776 through 2,790 (of 3,543 total)