Forum Replies Created

Viewing 15 posts - 106 through 120 (of 389 total)

  • RE: Conversion failed when converting date and/or time from character string, but works with hard coded value?

    If I may ask you about the design, why did you decide to keep varchar values instead of datetime in your table? I am almost certain conversion from datetime to...

    ...and your only reply is slàinte mhath

  • RE: Conversion failed when converting date and/or time from character string, but works with hard coded value?

    Does it happen for all rows? Maybe there is a value that cannot be converted.

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: SQL Server consuming 5GB of memory

    What do you consider as high? If sql servers memory is not confined, the server will tend to take as much as it can. High CPU may be related to...

    ...and your only reply is slàinte mhath

  • RE: Looping

    Probably you can use identity column on the ASSETINDEX. The MAX() + 1 approach is tricky and can kill performance.

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: Backup failure

    Hi,

    Did you try to run the backup manually?

    Also, I think there is more detailed information about the error. You have to click the '+' on the row showing the...

    ...and your only reply is slàinte mhath

  • RE: Looping

    You have to explicitly convert the source value to the destination data type in this case, like this:

    select convert(varchar(5), '123123123123')

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: Convert Varchar to Int

    May I ask, where are date1, date2, date3 values taken from?

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: insert using linked server / openquery

    Hi,

    Would this work?

    insert SPA03LS.ref_tbls..T_TEST

    SELECT * FROM cash..T_TEST

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: Looping

    Hi,

    Look at the INSERT..SELECT syntax in Books On Line. You don't have to read all rows in a loop and have a bunch of variables to keep constant values...

    ...and your only reply is slàinte mhath

  • RE: import Csv files

    I think that you have to familiarize with parameters of BCP. You have to run it from command line, so first run cmd.exe and then type bcp. It will display...

    ...and your only reply is slàinte mhath

  • RE: Multiple server queries in 2005?

    Hi,

    Unfortunately there is no such option in SSMS2005. There are third party tools that enable this. I know that SSMS Toolpack [/url] has such feature, although I never used it.

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: import Csv files

    Hi,

    Try to create FORMAT file (using bcp) or use BULK INSERT and provide proper FIELDTERMINATOR parameter.

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: OpenRowSet

    Hi,

    I guess this is due to the fact, that SQL Server does not access the file as you, but rather as the account it is running under. If it is...

    ...and your only reply is slàinte mhath

  • RE: Connections from application to SQL

    I guess it depends on the type of processing the application is doing. What technology the application is written in? By the look of this design one might think the...

    ...and your only reply is slàinte mhath

  • RE: Between first letter in last name (WHERE clause)

    Try this:

    select * from person.contact where LastName like '[A-N]%'

    Regards

    Piotr

    ...and your only reply is slàinte mhath

Viewing 15 posts - 106 through 120 (of 389 total)