Forum Replies Created

Viewing 15 posts - 10,261 through 10,275 (of 13,460 total)

  • RE: how to combine two queries in sql server

    if the first query returns 6 rows, and the second returns 1, that is the results of the cartesian join we warned you about.

    you have to determine what joins 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: time difference HELP!!

    you'll want to use the datediff function; but would you want a value in minutes if the difference was say 1823 minutes, or would you rather see 30 hours 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: error creating a linked server from sql server 2005 to 2000

    can you connect with SSMS to the server 'targetsvrname' as the user sql2000login?

    if the server was rebuilt, the login sql2000login might not exist and need to be re-added.

    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 combine two queries in sql server

    does this work? if your SQLs return just one line, this look good, otherwise it'd do a cartesian join unless you add a where statement.

    SELECT

    X.MemoryPages, X.MemoryAvailableMbytes, X.ProcessorTime, X.[DateTime], Y.MemoryPages_1

    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: error creating a linked server from sql server 2005 to 2000

    RP this is the syntax i've always used,a dn works without any problems for me:

    here i'm connecting to a SQL instance named "DBSQL2K5", but for fun, I'm aliasing it 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: Windows 7 and SQL Server 2005 Standard

    both Standard and Enterpise will only install on server versions of windows: 2000 Server/Advanced Server, 2003 Server, etc.

    Express, Professional, Workgroup, etc versions will install on any Windows Operating system, 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: Stored procedure to search for files

    something like this might get you started.

    for any given week, this returns the starting date of monday(@12am, the start of friday, and the last possible datetime of friday.

    from there, you...

    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: record of updates

    as others have pointed out, without a WHERE clause, you are updating every row.

    here's an example, which uses the output clause, so you can see how to use it:

    Create Table...

    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: Getting fed up with Microsoft !!!!!

    developer version is only a fifty dollar investment.

    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: Alternative to using xp_cmdshell

    xp_cmdshell is the method that opens the door to operating system commands ; once granted you have access to do just about everything.

    what you should do is create 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!

  • RE: Relationships between multiple databases

    that's easy.

    there is no way to ENFORCE a relationship between two databases; Foreign keys,constraints,etc can only exist within a database. if you cannot use the built in fuinctionality of...

    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: Get a listing of table names on a particular file group

    here you go: i had this saved in my SQL2000 snippets.

    it produces results like this:

    TableName IndexName ...

    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: Making part of the string bold

    no; you can change the color of the text in the textbox, but not format PART of it's value, as far as i know.

    you could put bold text before...

    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: Fixed length output from numeric column

    you can select the results of any calculation as a column in your query.

    SELECT

    COLUMNA ,

    Modifier,

    (COLUMNA * Modifier) As Result

    from MyTable

    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: SUM(Case) issue

    this is just a guess, where i'm trying to reduce the rows in the join by using a sub select;

    does this produce results that are close to what you want?

    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!

Viewing 15 posts - 10,261 through 10,275 (of 13,460 total)