Forum Replies Created

Viewing 15 posts - 14,356 through 14,370 (of 15,381 total)

  • RE: Get results in the same order as parameter list

    btull89 (7/28/2011)


    I provided all the information in the query that pertains to my problem...

    Well except for any details about how you split your string. That is the root of where...

  • RE: Get results in the same order as parameter list

    btull89 (7/28/2011)


    I could add an order column, and I have a split string function that I use. When I split the string how do I assign it a value for...

  • RE: Get results in the same order as parameter list

    If you want results in a certain order you have to use an order by. Looking at the very sparse bit of information you have provided it does not seem...

  • RE: stuck on a copy query

    Have you looked into SSIS? It can do this kind of stuff really nicely, all wrapped up in a slick package with bows and ribbons.

  • RE: stuck on a copy query

    Didn't exactly follow your description there but to get the first 20 characters just use Left([filename or variable], 20).

  • RE: store procedure

    If you need to save this to a table just change the select to an insert.

  • RE: store procedure

    Here is a generic template.

    create procedure blah

    (

    @parameter1 int,

    @parameter2 int

    ) as

    begin

    select MyCols from Table1

    join Table2 on Table1.ID = Table2.ID

    where MyVal1 = @parameter1 and MyVal2 = @parameter2

    end

  • RE: store procedure

    You want to receive a parameter and retrieve data from a current table based on what they passed in?

  • RE: increment

    You also have the "increment" be a negative number in sql. Set your identity seed to a large number (10,000) and the increment value to -1.

    First record will be 10000

    next...

  • RE: store procedure

    ferrarielly (7/28/2011)


    what you suggest? To create a "real" tale?

    How can I check if my value are really written in my table?

    I need to check the generated recordset

    Thanx

    Maybe if you explain...

  • RE: store procedure

    be careful with this. For this to provide any useful information you need to make sure this select will return ONLY 1 row.

    SELECT

    @Codarticolo = [SomeField1],

    @codlotto = [SomeField2],

    @giacenza = [SomeField3],

    @datamodificalotto =...

  • RE: One of those days.... datatype conversion error

    The BEST solution BY FAR is to use proper datatypes. Don't store datetime data in a varchar column. It is frought with errors and has been the topic of so...

  • RE: stuck on a copy query

    Just create a variable to hold your primary key.

    declare @MyID int

    Then add the column to your select statement.

    select [file name], MyID FROM [Actions Open] WHERE [MAIL] LIKE '' AND [File...

  • RE: SQL 2008 client tools side by side existing SQL 2005 server installation

    You can have both running on the same box. The installer will find 2005 and ask if you want to replace it or create 2008 as a named instance. If...

  • RE: store procedure

    You have 4 parameters inbound (3 of them are output). The body of your procedure doesn't actually do anything. You create a temp table and populate it with the values...

Viewing 15 posts - 14,356 through 14,370 (of 15,381 total)