Forum Replies Created

Viewing 15 posts - 13,396 through 13,410 (of 13,460 total)

  • RE: SQL Server /ISS Server

    reporting services must be installed on the same box as SQL to comply with the default licensing requirements, i think.

    after that it's the usual cost benefit scenario.....most people recommend SQL...

    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: UPDATE: i want to Put a Validity-Check so that Multiple update doesn''''t Occur

    after each update statement, check the @@ROWCOUNT value...it tells you the number of rows affected by the previous transaction.

    with that value, you can logically decide what to do next...wheter it...

    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: Can I find a word from any tables, all columns in a database?

    Someone else may have a better solution but this works:

    this cursor based solution  finds columns that are of type VARCHAR, and then returns EVERYTHING that matches your input string

    this would...

    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: Identify Potential Constraints

    A while back in my shop i had to search all columns of type int.

    In my case, many of the columns where actually foreign keys, but were not following 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: Identify Potential Constraints

    i'm a huge fan of constraints.... here's the things i typically look for:

    in our shop, Primary keys have a naming convention: they all end in either "ID" or "TBLKEY"

    You probably...

    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: If exists question

    For an index

    if exists (select * from dbo.sysindexes where name = N'INDEX' and id = object_id(N'[dbo].[TABLEA]'))

    print 'Yep, there is an index'

    else

    print 'No Index of that name'

    ok that's good for an...

    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: ado.net transaction with alter database

    ALTER the database, and then start a transaction which tests if the feature you tried to change is changed. for example:

    ALTER DATABASE PUBS SET AUTO_CLOSE OFF

    --now test if the feature...

    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 text file from query analyzer

    this is from a discussion post i had saved in the past: it used bcp to send to a dynamically named file based on the @id field; hope this helps.

    DECLARE...

    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: Rename a text file, move it, using a stored procedure

    does this work for you? i just put the commadn into a string and caled the shell with the variable.

    DECLARE

    @TodayDate as varchar(40),

    @TodayHour as varchar(40),

    @TodayMinu  as varchar(40),

    @NewFileName as varchar(100),

    @cmdstr as varchar(128)

    SELECT...

    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: Rename a text file, move it, using a stored procedure

    the move command really just copied the file with the given name, and then deletes the previous file. there is no need to move it with the same name, 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: Exhaustive List of frequent errors on SQL Server

    you might not be aware, but all error messages from sql server exist in the sysmessages table in master; around 3831 on my machine;

    select * from dbo.sysmessages

    a more common...

    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: Clear data in all tables - application problem

    The foreign keys hierarchy can prevent you from just deleting data in the tables;

    the script below creates a list of all the tables in hierarchy order, and creates the delete...

    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: help with script in Query Analyzer

    the error you received is because child records exist which are not in the parent/referenced table;

    run this query:

    SELECT CLINICPHONE AS MISSINGCLINICPHONE,* FROM DBO.CENTER  WHERE CLINICPHONE IS NOT NULL AND CLINICPHONE...

    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 DBCC Checkdb , execution time?

    I don't think the time to run DBCC CHECKDB is a function of the size of the database only, but rather a combination of something like

    (number of tables) *...

    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 Server 2005 and 200 in same PC

    On my dev box I had sql7 as the default instance , and SQl 2000 and SQL 2005 as named instances;

    from the SQL standpoint I had no problem, and 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!

Viewing 15 posts - 13,396 through 13,410 (of 13,460 total)