Skip to content

Database

Discussions on database access, SQL, and ADO

This category can be followed from the open social web via the handle database@forum.codeproject.com

17.1k Topics 61.8k Posts
  • SQL Server windows authentication

    database sql-server sysadmin security tools
    4
    0 Votes
    4 Posts
    0 Views
    C
    jschell wrote: If you don't trust your users then either address that at the management level or the contract level. And don't try to solve it with technology. :thumbsup::thumbsup::thumbsup::thumbsup::thumbsup: That's got my five. Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
  • Staging Area

    database question
    10
    0 Votes
    10 Posts
    0 Views
    S
    Mycroft Holmes wrote: The second greatest scam I have worked for some CIO's that have come up with way more atrocities than ETL or Y2K. Mycroft Holmes wrote: Extract - Load - Transform simplifies and speeds up the entire process. I think you can write bad code / processes in any language or tool. It's up to the person to find the best way to do it that works for them. Not sure about you but I have some amazingly fast SSIS packages that load a gig of data in seconds, but have seen some others that take hours doing a lot less data. Common sense is admitting there is cause and effect and that you can exert some control over what you understand.
  • ACL vs SQL for fuzzy matching

    database visual-studio question career
    4
    0 Votes
    4 Posts
    0 Views
    P
    At the most basic, you're talking about Soundex matching, which isn't great. You might want to consider Full Text Indexing, which will return misspelled items if they are close enough. Of course, you can always implement your own fuzzy logic inside SQL Server, using CLR functions. *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington "Mind bleach! Send me mind bleach!" - Nagy Vilmos CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier
  • Need help with a tricky MS SQL Query

    database help question
    4
    0 Votes
    4 Posts
    0 Views
    J
    Eddy Vluggen wrote: ..and no, it's generally not a good idea to have a server open like that; it's obvious that you're running Sql Server, and one can request a list of all the databases in there. From the question I would guess that the OP doesn't own the database server.
  • Database connectivity failure when using ODBC

    database java sysadmin architecture help
    3
    0 Votes
    3 Posts
    0 Views
    B
    Absolutely!
  • 0 Votes
    6 Posts
    0 Views
    D
    You can also user the SQL import Export wizard to transfer the data from one database to other database either table wise of bulk
  • EXEC sp_helptext

    database tools
    6
    0 Votes
    6 Posts
    0 Views
    L
    Try logic; you renamed it? Drop it, and create it anew? Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]
  • how to compare an operation in where expression In sql

    database tutorial
    3
    0 Votes
    3 Posts
    0 Views
    M
    Add Group By ProductName, Field2 after the where clause Never underestimate the power of human stupidity RAH
  • grant permission on table in another database

    database help question
    2
    0 Votes
    2 Posts
    0 Views
    C
    Dan_K wrote: Now I need to grant permission :confused: Is some kind of permission problem ocurring now that wasn't occuring before? Maybe I'm missing the obvious. :) Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
  • RECORD VALIDATION IN ACCESS

    tutorial
    3
    0 Votes
    3 Posts
    0 Views
    C
    What have you tried?
  • Database Synchronization

    database help announcement
    9
    0 Votes
    9 Posts
    0 Views
    E
    Use SymmetricDS: http://www.symmetricds.org/[^]
  • sql server 2008 table convert to xml files

    database sql-server sysadmin xml
    8
    0 Votes
    8 Posts
    0 Views
    J
    (SELECT * from [db].[schema].[tbl] FOR XML PATH(''),ROOT(''))
  • Help me my Sql expired

    database sql-server sysadmin windows-admin help
    3
    0 Votes
    3 Posts
    0 Views
    J
    Goto registry search for: 10.50.1600.1 by select F3.
  • login with another user faile problem

    help database sql-server sysadmin security
    3
    0 Votes
    3 Posts
    0 Views
    J
    grant server role with sysadmin :)
  • Stupid bloody idiot

    database sql-server sysadmin
    4
    0 Votes
    4 Posts
    0 Views
    M
    Now that I did not know, have 5 for he link, thank you, you have justified the rant... Never underestimate the power of human stupidity RAH
  • DATABASE QUESTIOM

    csharp database tutorial
    2
    0 Votes
    2 Posts
    0 Views
    L
    Don't write in capital letters - looks like you're shouting. Try the manual[^]. Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]
  • MS SQL - Tinyint - Default Value

    database question
    6
    0 Votes
    6 Posts
    0 Views
    M
    jschell wrote: since zero and null are not necessarily the same thing The is always a debating point, do we allow null to represent a value in a numeric field? As I'm a lazy sod I disallow null in numeric field as my default position and until the business can convince me otherwise that is the way it is designed. Never underestimate the power of human stupidity RAH
  • first linq for entity frame work?

    csharp linq question
    2
    0 Votes
    2 Posts
    0 Views
    H
    that could be quite handy In Word you can only store 2 bytes. That is why I use Writer.
  • SQL SERVER 2008

    database sql-server sysadmin
    13
    0 Votes
    13 Posts
    0 Views
    S
    Super solution but can't be replicated in other databases like oracle. Identity is a near equivalent to rowid concept in Oracle but its a dynamic value i.e not a sequence generator . Hence may be Only possible in sql server. Regards Sreeni www.sreenivaskandakuru.com
  • BEGIN TRANSACTION AND COMMIT TRANSACTION

    help question
    2
    0 Votes
    2 Posts
    0 Views
    P
    no you do not have to(but it is a safer option)..Have a look at the following snippet..- USE AdventureWorks2008R2; GO -- Variable to store ErrorLogID value of the row -- inserted in the ErrorLog table by uspLogError DECLARE @ErrorLogID INT; BEGIN TRY BEGIN TRANSACTION; -- A FOREIGN KEY constraint exists on this table. This -- statement will generate a constraint violation error. DELETE FROM Production.Product WHERE ProductID = 980; -- If the delete operation succeeds, commit the transaction. COMMIT TRANSACTION; END TRY BEGIN CATCH -- Call procedure to print error information. EXECUTE dbo.uspPrintError; -- Roll back any active or uncommittable transactions before -- inserting information in the ErrorLog. IF XACT\_STATE() <> 0 BEGIN ROLLBACK TRANSACTION; END EXECUTE dbo.uspLogError @ErrorLogID = @ErrorLogID OUTPUT; END CATCH; -- Retrieve logged error information. SELECT * FROM dbo.ErrorLog WHERE ErrorLogID = @ErrorLogID; GO