Forum Replies Created

Viewing 15 posts - 271 through 285 (of 443 total)

  • RE: convert NULL value in int column to nvarchar

    Mad-Dog (2/1/2010)


    it's not working.

    i get this error - Conversion failed when converting the nvarchar value 'No Data' to data type int.

    It won't work, your column is defined as an integer,...

  • RE: Run EXE from Stored Procedure

    Run this:

    xp_cmdshell 'dir c:\*.exe'

    Do you see your executable listed?

  • RE: Mishi Kobe Niku

    jameslester78-958147 (1/25/2010)


    ... fed beer and massaged daily.

    Ohhhh yesss! 🙂

  • RE: How to stop/start service using T-SQL?

    eko indriyawan (1/24/2010)


    ...

    I use InstallAware to build installer,

    ...

    In that case you might be better off asking your question in the InstallAware forums.

  • RE: extract days,hour,min,sec

    Mad-Dog (1/23/2010)


    I'm working on a report info.

    An SQL Reporting Services report, a Crystal Report, or something else...?

    It usually better to do this sort of thing in the reporting tool itself.

  • RE: cursor performance

    Seems that most of your code follows a similar pattern for each of the cursors, so can be replaced by code similar to Lutz's example earlier.

    The section marked "xraysID...

  • RE: cursor performance

    Try this to illustrate Gail's explanation:

    SELECT TOP 10 NEWID() FROM sys.objects

  • RE: how can I get uniqueidentifier value as return after insert a record

    It depends on a lot of things, please post more info on exactly what you are trying to achieve including table structures, example data.

    Do you want to use a...

  • RE: Session Settings

    Slight problem, I think the question is incomplete:

    1. In the text the table is referred to 'QOD_Customer' (singular), but in the SQL it is 'QOD_Customers' (plural)

    2. There is no mention...

  • RE: cursors and order by

    Here's another idea to add to the pot. Add an ordering column to your table and use ROW_NUMBER to populate it, like this:

    INSERT XMLmodelMap(ordering,machineID, machineType, [.... etc ...])

    SELECT ...

  • RE: cursors and order by

    First you need to eradicate the cursor by doing your insert something like this:

    INSERT XMLmodelMap(machineID, machineType, [.... etc ...])

    SELECT

    machineID,...

  • RE: splitting list into table

    A variation on arun's solution above with fewer string concatenations:

    SELECT

    ID, substring(item1,N,charindex(',',item1+',',N)-N)

    FROM

    tally

    CROSS...

  • RE: Select non-English records only

    If you provide a table definition and sample data in a ready to use format you're likely to get more help more quickly. See the 'How to post...' link in...

  • RE: SQL 2008 Reporting Services Report - Page Break Issue

    Sounds overly complicated, can you not just remove the column from the table?

    Or delete the expression in the textbox?

  • RE: Converting varchar to int

    izhar-azati (12/4/2009)


    Try:

    SELECT * FROM #product

    WHERE ','+catid+',' like '%,1,%'

    Yes, that would do it too. But proper normalization would be better, as Jeff recommends (if possible).

    I guess my attempt at humour...

Viewing 15 posts - 271 through 285 (of 443 total)