🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1166

changing lock level of the SQL server in source code

#1166
From: Rodleo
Date: Wed, 13 Oct 2004 13:00
54 lines
1906 bytes
Hi everyone,

My team is now developing an application with SQL Server 2000 as the backend 
database. We are trying to minimize the lock level in order to fine-tune the 
database, but we still have no clue on it. Would anyone please give me some 
insights how to acheive it? The following is the source code used to 
establish the connection.

    AnsiString connStr = "Provider=SQLOLEDB.1;Persist Security Info=False;";
    connStr += "User ID="+ strLoginName+";";

    if(strLoginPwd != "")

        connStr += "Password="+ strLoginPwd+";";



    connStr += "Initial Catalog=Mutation;Data Source=";

    connStr += strDBServName;



    ADOConnection->Close();

    ADOConnection->Connected = false;

    ADOConnection->ConnectionString = connStr;

    ADOConnection->LoginPrompt = false;



    try

    {

        ADOConnection->Open();

    }

    catch(...)

    {

        lbDBResult->Caption = "Failed!";

    }




Thanks a lot,
Leo
Technical Details
Message-ID: <416d26f7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,412c990a46643cc7,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Rodleo" <c@c.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: changing lock level of the SQL server in source code
Date: Wed, 13 Oct 2004 09:00:38 -0400
Lines: 56
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 64.8.90.114
Message-ID: <416d26f7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1097672439 64.8.90.114 (13 Oct 2004 06:00:39 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail