Forum Replies Created

Viewing 15 posts - 4,606 through 4,620 (of 13,469 total)

  • RE: Get count depending on specific criteria

    here's a CTE of your data that is inte ready-to-use format my friend Cadavre suggested:

    WITH myCTE ([Branch],[Year],[Count of All who failed],[Count of all right handed who failed])

    AS

    ...

  • RE: VS 2010 DB Project crashing on Copy/Paste

    how much memory does your developer machine have?

    I find VS2010 is very resource intensive; a single isntance devenv.exe is currently 1.4 gig or ram for a big project, and two...

  • RE: UDF Performance When Used As A "Macro"

    well, ideally, your scalar UDF can be converted to an inline table funciton instead.

    Create FUNCTION fnAdjustDateTime_itv (@date datetime, @timezone int)

    RETURNS table

    AS

    RETURN

    SELECT DateAdd(hh,CASE

    ...

  • RE: Best way to insert a lot of data in a database

    bulk insert expects raw data, and not formatted INSERT...statements.

    if your file looked like this isntead:

    1,Apr 27 2012 12:00AM

    2,Apr 27 2012 12:00AM

    bulk insert would insert into a two column table witht...

  • RE: How to monitor a Production Database in SQL Server 2005

    Monitoring can be a wide subject, sicne there is a lot of different things you might want to review.

    redgate, the website sponsor/owner, provides some free reports you can add to...

  • RE: How to change Database Mail Profile used for sending email

    probably what you are asking, is, if you have multiple email accounts, how do i change which one is used for the default email profiles?

    IN SQL Server Management Studio, int...

  • RE: SQL Command Question

    well, it's possible... you can do it with a wHILE loop, i guess.

    something like this seems to be what you are asking for, maybe?

    DECLARE @rowcount int

    SET @rowcount = 1

    WHILE @rowcount...

  • RE: Generating 1000's of report from SSRS in batch format

    have you looked into SSRS Data Driven Subscriptions, I'm pretty sure that's exactly what you are after, so that there is no user interaction required to create teh reports...so you...

  • RE: Function To convert large string to small values

    tripri (10/11/2012)


    Hi I got a table with one column of lenght 500 and i got around 500,000 records.

    So from that i'm looking for some record 'abc dfgr hjk kishg lZDjsdf...

  • RE: table errors

    ok SELECT OBJECT_NAME(437576597) will tell you the table that is having the problem.

    since it says index(0) and index(2) on that object, we know the table is a Heap, and...

  • RE: table errors

    run this command in SSMS, and post the entire results back here.

    the database in question is VertexProd, right?

    DBCC CHECKDB('VertexProd') WITH NO_INFOMSGS, ALL_ERRORMSGS

  • RE: How to handle cryptic column names

    yeah the second half of the issue is tough; you can stick the descriptive data in a relationsship witht eh columns/tables, etc with extended properties(sys.sp_addextendedproperty and fn_listextendedproperty), but that also...

  • RE: Delete existing records, after inserting new record

    if the OP can identify how he knows the "same record" already exists, it would be something like this

    CREATE trigger Del_records on Active_Table

    AFTER insert

    as

    delete from Active_Table a

    INNER JOIN...

  • RE: How to handle cryptic column names

    I had to do that a lot previously.

    keep the table you import into, but create a view with column names that better describe the purpose of the columns;

    even better, the...

  • RE: DENY DROP TABLE & ALTER TABLE Error

    this thread has a very similar issue:

    too strong of permissiosn were granted, but the DENY command doesn't have the level of granularity to take away things like ALTER TABLE

    this example...

Viewing 15 posts - 4,606 through 4,620 (of 13,469 total)