Forum Replies Created

Viewing 15 posts - 346 through 360 (of 596 total)

  • RE: Establishing SQL Server Connection from Web Server to Database Server

    To connect with a standard SQL login, you could try something like the following (of course, change the user id, password, server, and database):

    Dim strLoginID

    Dim strPassword

    Dim strConnect

    Dim objConn

  • RE: Just a little help required

    Since the tables involved in your query are structurally identical in every database, you could name your stored procedure sp_GenSelect and create it in the master database. The SP can then...

  • RE: Renamed computer and connected to sql server without problem!

    It doesn't cause any problems other than a possible invalid or null value for the global variable @@servername.

    What do you get when you execute

    SELECT @@ServerName

    Of course, you must stop and...

  • RE: append string to ntext field

    To use UPDATETEXT to append text, use the following template:

    DECLARE @tptr varbinary(16)

    DECLARE @textToAppend nvarchar(4000)

    SET @textToAppend = N'your text'

    SELECT @tPtr = TEXTPTR(columnName)

        FROM...

  • RE: bulk insert error

    The BULK INSERT statement will implicitly convert varchar to nvarchar if necessary.

    The problem is you're missing a single quote after the filename.

    Change this:

    set @cad='BULK INSERT webmisco.dbo.wr_primero FROM ''d:\transferencia$\web\reports\'+@Fichero+'...

  • RE: ERROR WITH UNION ALL VIEW

    Since you didn't post the DDL for the view, we can't tell exactly what the problem is. Open SQL Server Books Online, select the Index tab, and search for UPDATE,...

  • RE: @@servername

    I'd take Remi's advice and drop the server, then add it back in:

    EXEC sp_dropserver 'yourServerName'

    EXEC sp_addserver 'yourServerName', 'local'

    Stop SQL Server.

    Restart SQL Server.

    Also, try either or both of these:

  • RE: Unzip File

    You could download the WinZip 9 command-line utility from here:

    http://www.winzip.com/downcl.htm

    After installing it, execute WZUNZIP.EXE using xp_cmdshell

     

  • RE: Update Text

    If activity.description is of type text, then you can't use syntax like

    set description = description + '<br><img src=''..\artwork\checkon.jpg''>'

    Try the following example regarding the...

  • RE: Processadmin kill process role

    After you kill a process in EM (..| Current Activity | Process Info ), the view is not updated. You need to right click on Current Activity and select Refresh....

  • RE: Computed Column

    Jasmina,

    The only way to change the value of a computed column is to change the value in one or more of the columns used to create the computed column expression.

    For...

  • RE: Create identity column using dynamic seed value

    Try this example:

    CREATE TABLE #temp

    (

      id int IDENTITY(1,1)

    , mydata varchar(20)

    )

    DECLARE @seed int

    SET @seed = 12345

    DBCC CHECKIDENT ('#temp', RESEED , @seed) WITH NO_INFOMSGS

    INSERT #temp (mydata) VALUES ('ABC')

    SELECT * FROM #temp

    DROP...

  • RE: Cannot generate SSPI context

    Are you using the same IP addresses? Could be a DNS problem. Can you have the domain administrator re-register the server? Two years ago, I had to rename the SQL...

  • RE: Full-text search

    When you say full-text search is "not working", exactly what do you mean? Can you create catalogs? Can you enable FTS for a database? What errors do you get, if...

Viewing 15 posts - 346 through 360 (of 596 total)