Forum Replies Created

Viewing 15 posts - 12,361 through 12,375 (of 13,469 total)

  • RE: HELP WITH AUTOGENERATED INSERT

    we had a similar issue in our shop...we needed to merge two databases together, with each table having different data, but possibly the same identity() values.

    we had to build...

  • RE: Querying the max row length

    Jeff was just fiddling with it...add a reply, emails get sent, delete teh reply, the link in the email can't find the posted reply. expected behavior.

    WHY he was testing, we...

  • RE: More newbie system table help

    Jeff Moden (10/1/2007)


    Heh... those are fun but I like the real-life questions that teach why or why not to do something... for example...

    1. How many internal rows will be...

  • RE: count non null values

    this would give you the sample structure to test each column in a single pass...is that what you wanted, or did you want where an entire row was null?

    select SUM(CASE...

  • RE: How to migrate clipper database to sql 2000

    from what i remember Clipper was just a Visual Foxpro, right? so it's simply a .DBF file you connect to using dts and import the whole thing:

    Enterprise Manager, Select database...Right...

  • RE: Restricting rights to Query Analyzer only

    you can restrict access to executables and such via NT permissions and Active directory.

    Once connected, unless you restricted his access to some objects, he's pretty much got access right?

    if he...

  • RE: Querying the max row length

    creating and deleting replys, it looks like from my forum emails.

  • RE: Trigger lock hint

    Serg is right; what is your trigger doing? Is it calling a stored procedure or something ?Is it using spOACreate/xp_cmdshell? trying to email something? does it declare a variable? does...

  • RE: SQL Syntax for newbie...

    not sure which programming language you are using, but having a recordset/datatable with Userid, RoleId and RoleName might be more flexible;there might be other items you'd want handy in the...

  • RE: SQL Syntax for newbie...

    I would return a recordset/datatable of multiple rows instead, if it were me;

    something like

    ]SELECT UserRoles.UserId,UserRoles.RoleId,UserRoles.RoleName from UserRoles where UserRoles.UserID In (SELECT UserId from Users where UserId=12)

    Or

    SELECT UserRoles.UserId,UserRoles.RoleId,UserRoles.RoleName from...

  • RE: Where is your sessions Current DATEFORMAT hidden

    doh so simple; thanks noeld

  • RE: RBAR to Set Based Solution; for the honour and the glory.

    still looking at the problem, but here's the DDL I created for testing:

    SET DATEFORMAT dmy

    DECLARE @Sample Table(Account varchar(30), Product varchar(30), StartDate datetime,EndDate datetime,Bonus int)

    INSERT INTO @Sample

    SELECT '20943','A','26/01/2005',NULL,10 UNION

    ...

  • RE: Cursor Errors

    select * from master.dbo.sysmessages where error = 16945

    select * from master.dbo.sysmessages where error = 16937

    select * from master.dbo.sysmessages where error = 16954

    error = 16945: The cursor was not declared.

    error =...

  • RE: Newbie: Copy database but not tables

    because you don't want to overwrite the database, it's much more difficult. foreign keys for tables may bite you in the tailfeathers.

    this is what I would do:

    restore a copy of...

  • RE: Table size based on the structure of the table (very urgent)

    take a look at this thread:

    http://www.sqlservercentral.com/Forums/Topic385732-9-1.aspx

    it has solutions for the defined size you are looking for, as well as MarcusB's solution for the largest row in the table, and finally...

Viewing 15 posts - 12,361 through 12,375 (of 13,469 total)