Forum Replies Created

Viewing 15 posts - 12,931 through 12,945 (of 13,460 total)

  • RE: conflicts with view names

    very handy Ged;

    I added another selection below that you can use if you have stored procs or functions that have been renamed the same way; Thank you for writing something...

    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: query governor cost limit option

    not fixing an issue like this could cost you your job. The great thing about posting here at SSC is you can build off of other's experience, and avoid 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: New Syntax ???

    hadn't seen it before either; tested it and it works on my sqk2k machine:

    SELECT name

    FROM sysobjects

    WHERE { fn LENGTH(name) } > 30

    [edited] sure enough, it's in the BOL:

    Functions for...

    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: Generate Insert Statements for List of Tables

    there's a famous full featured script that does exactly that;

    http://vyaskn.tripod.com/code.htm#inserts

    you'd do something like

    EXEC sp_generate_inserts  'tbcounty' and get results like this:

    or a subset:

    EXEC sp_generate_inserts  'tbcounty' ,@from="from...

    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: searching for whole words in text fields

    Sergei is right, but there is some extended stored procedures you can put on your sql 2000 server in order to use regular expressions in SQL 2000:

    read this for all...

    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: Issue with inserting text in to ntext field in db.

    do you mean when you view it in Query analyzer?

    QA is limited to displaying 8000 chars or 4000 nchars for a column value; so if you do "SELECT someNTextValue...

    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: Saving image to disk (from sql)

    I do the same as Jeff, with a little bit more data: i save the filename, file size, and the CRC of the file in a database;

    I do this because...

    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: query governor cost limit option

    Rudy and David are right on target;

    You KNOW it is only a matter of time before one of your developers runs an UPDATE or DELETE statement against production as well;...

    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: Need Udf for next sequential key operation

    id like to hear why they cannot use an identity column. is it because the application is using the borland BDE as the provider to the database?

    the correct solution 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: How to determine the physical location of objects

    multiple file groups are always recommended; I'm pasting a script to help you out with a tiny slice of it: after you've created multiple file groups, the script below can...

    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: How to determine the physical location of objects

    hard to track down; good question;

    if a table is assigned to a filegroup, it stays within that file group.

    if the filegroup is comprised of more than one physical file, when...

    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: ALTER TABLE, add column with IDENTITY

    the identity function is smart....if there is a max value in your db with the value 1058, if you try to reseed with a value LESS than the current max...

    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: ALTER TABLE, add column with IDENTITY

    normall, you just do ALTER TABLE UsersImport ADD userIdInt int IDENTITY (99,1) to start at #99.

    with a variable, it's a two step process:

    declare @C1 int

    set @c1=99

    ALTER TABLE UsersImport ADD userIdInt...

    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: Urgent Help on Accidental Row Deletion

    note that the log readers are great, but only work if your recovery model is set to FULL; if it is simple, then there's no log to read, and thus...

    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: Full server documentation into an .xls?? Using this sp...

    updated!

    Thanks again for all the feedback.

    Thanks to David Russell for pointing me towards the fix for some subqueries returing more than one row;that bug is fixed.

    other things i did:

    added functions...

    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,931 through 12,945 (of 13,460 total)