Forum Replies Created

Viewing 15 posts - 3,766 through 3,780 (of 13,460 total)

  • RE: Data Compression in SQL Server: Shubham Saxena

    I played with this compression CLR for SQL 2005 more than five years ago.

    It worked at the time, but as Gail said, I think doing it in TSQL is...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Best Way to Speed Up Queries

    As Sean has identified, all we can offer is vague advice unless ou have some details we can look at to try and help.

    here's a quick list of some things...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Show cross-database dependencies between objects

    nope, a database doesn't keep track of what references Itself, only what objects it's own objects references.

    for same server references, you could query each database and stick the results into...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: encryptbypassphrase:decrypt or read values without passphrase

    that's one of the advantages/disadvantages of Encrypt by PassPhrase:

    you can prevent the DBA from getting to the data if he doesn't have the passphrase. By The Same Token, if you...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: VARCHAR(200) vs VARCHAR(2000)

    you could run into problems with inserting/updating rows with unecessarily oversized rows of data;

    SQL still has a max row size of 8060, so if you had an update statement that...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: encryptbypassphrase:decrypt or read values without passphrase

    as far as i know, it's not possible; without the pass phrase you'd have to try a dictionary attack on decrypting the values, and see if any if the encrypted...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: TRIGGERS...

    asm1212 (4/1/2013)


    So is there not a trigger that will allow the transaction to happen and once it completes, a trigger will fire off?

    The Service Broker or Extended Events both...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: sql query to be accessed online

    way too many assumptions and alternate technologies to even begin to offer much more than the basics.

    1. you would need a web server, that also has access to where ever...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Why is Output parameter null?

    I believe when you call the procedure, you need to mark the parameter as output also:

    exec Testout 'Y', @p2 OUTPUT

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Add Auto Incrementing column to my SELECT statement

    my first guess at what you are asking;

    you mentioned hundreds of thousands, but your pattern only allows 99999 values.

    note i'm still using an identity and a default value in order...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Creating code objects within a single script

    it kind of sounds like the client has your application already in place, and when they upgrade, they need to run scripts too?

    I know in our case, we've done it...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: A severe error occurred on the current command. The results, if any, should be discarded.

    i get this a lot when i use an explicit transaction, which i then role back; afterwards, in that situation i get the same error you reported when i then...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: on primary

    AndrewSQLDBA (4/1/2013)


    Because that you can have more than one filegroup. And that tells SQL Server to create the object in a certain file group. Yes, it is required. That is,...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Customize DB Role

    it's trivially ewasy, but the most important thing is to make sure noone has sysadmin rights; you cannot hide or deny access to a sysadmin.

    sql is deny by default, so...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: sql server readonly permission

    an example of what Gail was referring to:

    USE [SandBox] --my db for users to do stuff.

    CREATE ROLE [ReallyReadOnly]

    --give my new role READ permission to ALL tables

    EXEC sp_addrolemember N'db_datareader', N'ReallyReadOnly'

    --explicitly DENY...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 15 posts - 3,766 through 3,780 (of 13,460 total)