Forum Replies Created

Viewing 15 posts - 12,241 through 12,255 (of 13,460 total)

  • RE: multiple strings between two different delimiters

    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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Freeware to notify DBA if the database servers are restarted or shutdown??

    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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Compatibility question...

    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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Strange bit field behaviour

    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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: find certain words across all table columns??

    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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Quering for tables based upon table and column name

    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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: batch file for non sql user

    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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Dynamic SQL to set column default value to Char(1)

    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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Convert RTF data

    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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Working with a TEXT column in a trigger

    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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: put value into foreign key table

    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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: SQL 2000 Database without name

    --create database [ ] --example where i created a badly named database

    select dbid,'[' + name + ']' from master.dbo.sysdatabases

    results:

    1 [master]

    2 ...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: SQL 2000 Database without name

    what was the results of the query i posted?

    was it 'No Name Database' literally?

    did you try drop database [No Name Database]?

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: CREATE TABLE is creating System tables

    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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: SQL 2000 Database without name

    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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 15 posts - 12,241 through 12,255 (of 13,460 total)