Forum Replies Created

Viewing 15 posts - 12,661 through 12,675 (of 13,460 total)

  • RE: Why Query Analyzer not able to detect missing column in table for Sql2k

    there's a difference between the Parse Query Function and the Execute Query;

    Parse Query (the check mark button) validates the query for syntax violations...it does not actually check if the objects...

    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: Merging two SQL''''s

    because your WHERE statements affect different records, you can't merge them together into the SAME SQL

    there is no guarantee that the data found would be the same rows, and 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: Obtaining the SQL Server Version Information?

    I'm sure Aaron is right...it calls the extended stored procedure, which in turn queries the registry for the specific values in question...that way, for example, a service pack or Hot...

    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: Split Data into two fields

    here's an example: you need to decide what to do with columns that have multiple or no commas, but here you go:

    create table QUADTEST(namefield varchar(60) )

    insert into QUADTEST(namefield) VALUES('Noblesville,Fishers')

    insert into...

    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: Manipulating Employees Punchtimes

    if you can, redesign your data storage... you should use a date time filed to store the date and the time together. if you need them separate, you can always...

    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: Client files needed to connect to Server Database?

    you would want to deploy the SQL Native Client drivers with your application. you would not need anything else.

    here's what MS says: basically they give a reditributable sqlncli.msi file, 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: Updating a field automatically when keying in one field

    what is the specific error message you get for error -271; i googled it and couldn't find an example.

    ok...you said you were loading the data into a data table. 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: Code Page for installation ?? Please help

    changing collation can be a big project because it's in so many places:

    at the server level, at the database level, and separately for each column of type text/ntext/char/nchar/varchar/nvarchar/

    here's a script...

    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: Updating a field automatically when keying in one field

    i believe your code is trying to update the calculated field, maybe by trying to update it's current value with the same value. it might be automatic. make sure 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: Random "Could not find stored procedure" error

    i've seen this many times ; it has to do with the default database for the login in question...change the default login's database from whatever it is now (probably master)...

    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 from two tables

    since you are updating standard2, you should not have joined it: stop the query and do it this way;

    UPDATE    Standard2

    SET        Standard2.Current_County = ZipMkt06.County2

    FROM        zipmkt06 WHERE standard2.patzip = zipmkt06.zip

    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: script to generate db scham of all the databases in a sql server instance

    improved to include the column as well:

    select

    object_name(parent_obj) As TableName,

    syscolumns.name as Columnname ,

    sysobjects.name as DefConName from sysobjects

    inner join syscomments on sysobjects.id=syscomments.id

    inner join syscolumns on sysobjects.parent_obj=syscolumns.id and sysobjects.info =syscolumns.colid

    where sysobjects.xtype='D' --default...

    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: script to generate db scham of all the databases in a sql server instance

    I think this is what you are looking for: this is for a single database, you'd need to wrap this up for the sp_msForEachdb proc for every location on every...

    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 rewriting a not in query

    i don't see how/if A is related to b, but it is something like this i think: maybe left or right joins, you'd have to examine the actual data:

    select  a.[Value],...

    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: Script to get distinct data

    i kind of assumed that the uniqueness you wanted was firstname/lastname, so all other columns would be a min() or max(), unless those columns make the row the distinct -ness...

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