Forum Replies Created

Viewing 15 posts - 7,756 through 7,770 (of 14,953 total)

  • RE: How to Prevent DBA's from viewing the data

    Encryption is the only safe way to do this. Anyone who tells you otherwise is just trying to sneak past you, or doesn't know what they're talking about.

    Even if...

  • RE: How to stop developers from creating objects in master database

    Deny them the rights to create objects in master. That's simple enough, unless they've got sa rights (which they shouldn't).

  • RE: Is C# Better?

    scole-1025617 (11/13/2009)


    acarlson-861483 (11/13/2009)

    GOOD FOR YOU! I sincerely expect that your work SHOULD have improved over 5 years. As you develop in C# you will continue to improve with that...

  • RE: Is C# Better?

    Steve Jones - Editor (11/13/2009)


    An interesting debate. From the overall tone, I think that lots of people use C# for personal reasons, or because they find work with it, not...

  • RE: Is C# Better?

    Florian Reischl (11/13/2009)


    GSquared (11/13/2009)


    void ValidateColumn(object sender, DataColumnChangeEventArgs e)

    {if(e.Column.Equals(this.UnitPriceColumn))

    {if(!Convert.IsDBNull(e.ProposedValue) &&

    (decimal)e.ProposedValue < 0)

    {throw new ArgumentException(

    "UnitPrice cannot be less than zero", "UnitPrice");}}

    else if (e.Column.Equals(this.UnitsInStockColumn) ||

    e.Column.Equals(this.UnitsOnOrderColumn) ||

    e.Column.Equals(this.ReorderLevelColumn))

    {if (!Convert.IsDBNull(e.ProposedValue) &&

    (short)e.ProposedValue < 0)

    {throw new ArgumentException(string.Format(

    "{0} cannot...

  • RE: Is C# Better?

    Dean:

    Yes, the VB.NET you posted is harder to read. It also deliberately avoids general readability standards. Try this:

    VB.NET:

    Sub ValidateColumn(sender As Object, e As DataColumnChangeEventArgs)

    If e.Column.Equals(Me.UnitPriceColumn) Then

    If Not Convert.IsDBNull(e.ProposedValue)...

  • RE: find if user belongs to a role

    Have you tried querying sys.database_role_members?

  • RE: Is there anyother way to eliminate the BOOKMARK LOOKUP , a part from changing the Indexes

    The only way to eliminate a bookmark lookup without having the requested columns in an index, would be to force the query to use the clustered index instead of a...

  • RE: Msg 8967, Level 16, State 216, Line 1

    The database is corrupted is what all that translates to in simpler terms.

    You'll need to get a backup that wasn't created over I/O errors is most likely the best solution.

  • RE: Is C# Better?

    I've actually seen people advance the argument that VB is worse than C# because, "Look at all the bad code that's been written in VB!"

    I've seen the argument that C#...

  • RE: Consolidating Again and Again and Again

    Virtualization can save money on an ongoing basis. As already mentioned, less maintenance and upgrade cost because of less hardware. Even more so, when done correctly, it can...

  • RE: Trigger for Auditing Data on Table Text Field

    Well, somewhere there's code that's issuing the update command. Whether that's in a proc or in the front end, or the data access layer, or somewhere else, it has...

  • RE: Question regarding Parameters for Stored Procedures

    My prefered practice is to name parameters with their direction. @Date_in, or @Account_out, that kind of thing. Local variables don't get a suffix. Makes it really easy...

  • RE: SQL Safe backup and restore between to SQL Server 2005 servers and instances

    If it comes down to it, get a copy of Dev Edition for yourself. It's only about $50, and it's worth it to have.

  • RE: Detect and update 'duplicates' based on time difference

    In re-reading your post, I realized you're planning on an update instead of a deletion, so change that part of what I wrote.

    The "repeat till @@rowcount=0" is because you could,...

Viewing 15 posts - 7,756 through 7,770 (of 14,953 total)