Forum Replies Created

Viewing 15 posts - 2,071 through 2,085 (of 3,543 total)

  • RE: Scientific Notation Problem

    By default the Excel ISAM examines the first eight rows and will use the majority type to determine the data type, so if the first line is alpha and the...

  • RE: Scientific Notation Problem

    The problem is the Excel ISAM and it's estimating of column contents and uses the type of the majority values (and value evaluation) to decide what the column type is and...

  • RE: dynamic sql

    sorry my fault, did not check parameter names properly, try this instead

    exec sp_executesql @InsertString,

    N'@Curcode char(3),@ExchRate char(25),@GLDesc char(100),@Glcode char(10),@debit char(25),@credit char(25),@dtmyr char(25),@crmyr char(25),

    @refno char(16),@itiscode char(3),@trandesc char(100),@Createdby char(50),@trandate char(12),@batchno char(3)',...

  • RE: dynamic sql

    Because the table name is not known, only the structure and therefore assumes that the structure is the same for any table name passed to the proc.

    Try executing the sql by...

  • RE: Scientific Notation Problem

    Are the columns in the spreadsheet set as text?

    Did you change the registry setting?

    Have you tried to increase the row sampling?

    See http://support.microsoft.com/kb/194124

  • RE: Alter Table Problem

    My guess  would be

    create table kpuser.tbl(Vtpe varchar(50))

    declare @UnitID varchar(8000),@FieldName varchar(50),@Unit_ID varchar(30)

    set @UnitID = '252,253,254,255,'

    Declare @Flag int

    declare @delimiter nchar(1)

    set @delimiter...

  • RE: Passing two output parameters in one stored procedure

    In .NET the basics (using Gila's proc)

    Dim param1 As SqlParameter

    Dim param2 As SqlParameter

    Dim CommSQL As New SqlCommand()

    CommSQL.Connection = ConnSQL 'Or whatever your connections is called

    CommSQL.CommandType = CommandType.StoredProcedure

    CommSQL.CommandText = "Test"

    CommSQL.Parameters.Clear()

    param1 =...

  • RE: DTS To Excel. Column gets truncated.

    Make sure the output field is created as LongText, this works for me

  • RE: Troubles with query analyzer

    The only time I had something like this is when I had 'Set implicit_transactions' ticked in Options / Connection properties

    This tells QA to start a transaction when you connect which...

  • RE: Using FROM @variable in SELECT statement...

    But still uses a cursor

    If the number of tables is not too large then you could use dynamic sql

    DECLARE @sql nvarchar(4000)

    SELECT @sql...

  • RE: Linked Servers

    Check SERVER1 has Data Access checked in Server Options for the linked server SERVER2

  • RE: Removing characters from a string

    That is what the REPLACE query I posted will do, try this in QA

    SELECT REPLACE('A1EC1XXXXXX-52','X','')

    and you will get

    A1EC1-52

  • RE: Can find the solution

    SELECT u.lname,t.Total,ISNULL(c.Correct,0) AS [Correct]

    FROM [User] u

    INNER JOIN (SELECT u.userid,COUNT(*) AS [Total]

      FROM [User] u

      INNER JOIN [Request] r ON r.userid = u.userid

      GROUP BY u.userid) t...

  • RE: Removing characters from a string

    or

    STUFF('A1EC1XXXXXX-52',6,6,'')

    if they are not really X's

Viewing 15 posts - 2,071 through 2,085 (of 3,543 total)