Forum Replies Created

Viewing 15 posts - 12,916 through 12,930 (of 13,469 total)

  • RE: Retrieve a BLOB as .xls-file

    you don't fiddle with image/binary fields at the SQL server level usually; you do it an an application level, like with VB, VB.NET, Delphi, whatever.

    Here's the code as an example...

  • RE: SMTP problem

    AUTH is the command to send a username and password to the mail server in order to use the SMTP service; it's required, because otherwise the server is wide open...

  • RE: Windows authentication flakey

    if a backup of a database was created on SERVER A, and Restored on SERVER B, you would find that behavior...all users in the db are "orphaned";

    i'd guess that if...

  • RE: PORT Numbers

    the ports are actually saved in the registry, and not in the database; that's because a service advertises the server instance where the databases reside, so the OS needs the...

  • RE: Save password

    since he posted to this forum, I kind of assumed he was talking about SQL 2000; I've got an instance of 2005 as well, but I haven't used it enought...

  • RE: Inconsistent ODBC Error

    I'd venture a guess that one of the fields in the insert statement is receiving data that is longer than the field; for example if QuikJournal was defined as 200...

  • RE: Save password

    ISQLW accepts command line parameters. start>>Run isqlw /?  will give you the list; then simply create a shortcut like isqlw.exe -s[localhost] -dmaster -Usa -Ppassword

  • RE: export many tables in just one dts

    instead of comma delimited, can you use INSERT INTO TABLEXXX instead?

    if you can,Narayana Vyas Kondreddi has an excellent procedure to do that that he has shared: http://vyaskn.tripod.com/code.htm#inserts

  • RE: RefreshView for all dependcies

    yes; my original post about sp_MSdependencies is the solution;

    create table #Hierarchy (

    objectType    int,

    objectName    varchar(50),

    objectOwner   varchar(50),

    CreationOrder int,

    IsSchemaBound int)

    insert into #Hierarchy (objectType,objectName,objectOwner,CreationOrder)

    EXEC sp_msdependencies @intrans = 1

    select * from #Hierarchy

    update #Hierarchy set...

  • RE: Need to display decimal value converting it to non decimal 13 character numeric string replacing unused character positions with ''''0''''

    might be a better way, i did it this way because of the decimal point:

    declare  @SomeValue        money

    Set @SomeValue=740002.64

    select right( '0000000000000' +  CONVERT(varchar,convert(int,(@SomeValue * 100))),13) AS FinalAnswer

    select right(REPLICATE('0', 13) +  CONVERT(varchar,convert(int,(@SomeValue...

  • RE: Multiple Rows to One Column Results

    does this work?

    change the last statement at the end to the following:

    set @myAreaCode ='SELECT top 5 @myAreaCode = @myAreaCode + ISNULL(AreaCode,'') + ',' from @stage'

    set @myAreaCode ='''

    SELECT...

  • RE: Multiple Rows to One Column Results

    the normal Caveats for this question: you should do this at the presentation layer, whether it is an app or a web page, because it's easier.

    here's one way to do...

  • RE: Dynamic sql 4000 character limit workaround problem.

    I was under the impression that you could exec any size command like this:

    DECLARE @sql1 nvarchar(4000),

    @sql2 nvarchar(4000),

    @sql3 nvarchar(4000),

    EXEC sp_executesql @sql1 + @sql2 + @sql3, N'@hDoc int, @p_blnTracking bit,...

  • RE: How to determine concurrent user ?

    hope what i posted was helpful.

  • RE: How to determine concurrent user ?

    assuming that one machine can run as many instances as you want, but only 5 users, this might get you started:

    in my poor example below, you can see that the...

Viewing 15 posts - 12,916 through 12,930 (of 13,469 total)