Forum Replies Created

Viewing 15 posts - 4,786 through 4,800 (of 7,187 total)

  • RE: Counting the contents of a column on a table while handling table structure changes

    In SSMS, if you look at the Storage tab on the properties of a table, you can get the row count for that table. If you use Profiler to...

  • RE: Migrating all MS SQL Server Databases

    no need to move system databases. is there any specific requirement? you can script out the logins , permissions and Sql jobs and deploy it to your new partition.

    Please...

  • RE: Database roles/permissions

    I don't know any way of doing that, but it should be fairly simple to set up, something like this:

    SELECT 'USE ' + name + CHAR(13) + CHAR(10) + '...

  • RE: Getting DATEDIFF from 2 separate rows...

    Join the table to itself on SSN = SSN and Contract_Number = Contract_Number + 1. You can then use DATEDIFF to get the differences between the times.

    John

  • RE: Trying to Add Job Schedule Using T-SQL

    You shouldn't (and indeed I believe you can't) update system tables directly. Use the stored procedure instead - it's called something like sp_addjobschedule.

    John

  • RE: Backup in network drive

    guruprasadurs (1/24/2012)


    Is that possible to take back using maintenance plan in network drive or ftp server. If possible how to?

    Thanks in advance

    Network drive, certainly. Use a UNC path and...

  • RE: Users Delete permission issue

    Have you tried DENY DELETE ON TableName TO LoginGen on all tables?

    John

  • RE: Cant release unused space???

    What is the size of your model database? DBCC SHRINKFILE won't shrink your database any smaller than that.

    John

  • RE: Why doesn't this work?

    raotor (1/18/2012)


    Did you get the actual attachments?

    No, there's nothing attached to your previous post. Click on Edit Post and then click on Edit Attachments to start uploading them.

    John

  • RE: Why doesn't this work?

    Can't see those report files.

    You are using SQL Server 2998, aren't you?

    John

  • RE: BEGIN or not to BEGIN

    You need to use it, for example, if you have a code block longer than one line to be executed (or not executed) in an IF construction. Otherwise, it's...

  • RE: Foreign key on an IDENTITY column

    I'm stumped, then. The only thing I can think of for you to try is create the table without the foreign key, then use ALTER TABLE to add...

  • RE: Foreign key on an IDENTITY column

    Can't see anything wrong with that. Does the statementHistory table definitely exist when you are trying to create the categories table?

    John

  • RE: Union Issue

    As Paul and Cadavre have already asked, post your table DDL and some sample data and it'll be a lot easier for us to help you.

    John

  • RE: Union Issue

    Or maybe...

    WITH CTE AS (

    Select wrp_sys_User.IntUserId, wrp_sys_User.chrForename + ' ' + wrp_sys_User.chrSurname as chrFullName, U.intUserID, U.chrUnAllocatedUser

    from wrp_team inner join wrp_TeamUser on wrp_Team.intTeamID = wrp_teamUser.intTeamID

    inner join wrp_sys_User on wrp_teamUser.intUserID = wrp_sys_User.intUserID

    inner...

Viewing 15 posts - 4,786 through 4,800 (of 7,187 total)