Viewing 15 posts - 12,241 through 12,255 (of 13,460 total)
Thanks Ramesh; i'm looking it over now; i must have got a copy paste error, as it returns an erro based on something in the data;
Conversion failed when converting the...
Lowell
October 29, 2007 at 5:21 am
stating the obvious, you can't have SQL server watch itself..if it goes down, it can't report. you need something running with the operating system.
I know over at sourceforge.net there is...
Lowell
October 27, 2007 at 6:41 am
a SQL 2005 database, no matter what compatibility level it was set for, is still in SQL2005 format, and can't be restored or attached by previous versions of SQL.
compatibility level...
Lowell
October 26, 2007 at 11:18 am
two things i could think of checking are:
check the table for a trigger...maybe a trigger is changing the bit field...
check and make sure the field isn't a calculated field, and...
Lowell
October 26, 2007 at 10:01 am
this will KILL you if you are searching a database that has a table with millions of rows..
this works really well whens earching for data like you describe:
CREATE PROCEDURE UGLYSEARCH...
Lowell
October 26, 2007 at 9:52 am
several ways, but information_schema is the recommended practice:
select TABLE_NAME,COLUMN_NAME,* from
INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME like '%native%'
select OBJECT_NAME(id) as Table_Name,name as ColumnName from syscolumns where name like '%native%'
Lowell
October 26, 2007 at 5:02 am
if you are SP2 on your 2005 instance, you could use a logon trigger:
from some ms technote:
In SQL Server 2005 Service Pack 2, there is a new feature for Logon
Triggers....
Lowell
October 25, 2007 at 5:25 am
the Y should be surrounded with two single quotes, not a double quote....
a double quote implies a column name:
set @sql =
N'ALTER TABLE ' + @table_name + ' ADD "Testcolumn"...
Lowell
October 24, 2007 at 11:18 am
My old link from 2005 is broken.... I'll re-find the solution and update.
for a single field, this still works fin on my server:
create function dbo.RTF2TXT(@in varchar(8000)) RETURNS varchar(8000) AS...
Lowell
October 24, 2007 at 9:57 am
does it HAVE to be done instantly in a trigger?
how about a scheduled job that runs periodically(or is queued based on the trigger you are building)
in that case, you could...
Lowell
October 24, 2007 at 9:39 am
pointing out the obvious here, but this might help:
the book must exist first in your dbo.books table.
after it has been added, you can realte the book to one or more...
Lowell
October 24, 2007 at 7:23 am
--create database [ ] --example where i created a badly named database
select dbid,'[' + name + ']' from master.dbo.sysdatabases
results:
1 [master]
2 ...
Lowell
October 24, 2007 at 4:45 am
what was the results of the query i posted?
was it 'No Name Database' literally?
did you try drop database [No Name Database]?
Lowell
October 23, 2007 at 7:54 pm
somebody ran this command:
--Turn system object marking on
EXEC master.dbo.sp_MS_upd_sysobj_category 1
after that is run, all commands that create objects in SQL 2000 are system objects. this is fine if you were...
Lowell
October 23, 2007 at 7:48 pm
just tested it:
create database [ ]
drop database [ ]
the above works..
create database [ ]
Server: Msg 1038, Level 15, State 3, Line 1
Cannot use empty object or column names. Use a...
Lowell
October 23, 2007 at 2:32 pm
Viewing 15 posts - 12,241 through 12,255 (of 13,460 total)