Quantcast
Channel: Forum SQL Server Database Engine
Viewing all 15889 articles
Browse latest View live

~15~goa 𝓡ussian ESCO𝓡ts Gi𝓡ls(09599700222)goa Call Gi𝓡Ls,goa ESCO𝓡ts Gi𝓡l,Call gi𝓡l MoDels iN goa ,goa Esco𝓡t ,goa Sexy ESCO𝓡ts,goa 𝓡ussian ESCO𝓡ts,goa Call Gi𝓡ls Numbe𝓡s,goa ESCO𝓡ts Gi𝓡ls,Esco𝓡t Gi𝓡ls in goa,goa Call

$
0
0
~15~goa 𝓡ussian ESCO𝓡ts Gi𝓡ls(09599700222)goa Call Gi𝓡Ls,goa ESCO𝓡ts Gi𝓡l,Call gi𝓡l MoDels iN goa ,goa Esco𝓡t ,goa Sexy ESCO𝓡ts,goa 𝓡ussian ESCO𝓡ts,goa Call Gi𝓡ls Numbe𝓡s,goa ESCO𝓡ts Gi𝓡ls,Esco𝓡t Gi𝓡ls in goa,goa Call gi𝓡l mobile numbe𝓡,goa fo𝓡eigne𝓡 ESCO𝓡ts,high class goa ESCO𝓡ts,goa Sexy ESCO𝓡ts,,goa Models ESCO𝓡ts,adult goa Esco𝓡t,dating With goa ESCO𝓡ts,goa vip ESCO𝓡ts,goa hot Esco𝓡t~15~goa 𝓡ussian ESCO𝓡ts Gi𝓡ls(09599700222)goa Call Gi𝓡Ls,goa ESCO𝓡ts Gi𝓡l,Call gi𝓡l MoDels iN goa ,goa Esco𝓡t ,goa Sexy ESCO𝓡ts,goa 𝓡ussian ESCO𝓡ts,goa Call Gi𝓡ls Numbe𝓡s,goa ESCO𝓡ts Gi𝓡ls,Esco𝓡t Gi𝓡ls in goa,goa Call gi𝓡l mobile numbe𝓡,goa fo𝓡eigne𝓡 ESCO𝓡ts,high class goa ESCO𝓡ts,goa Sexy ESCO𝓡ts,,goa Models ESCO𝓡ts,adult goa Esco𝓡t,dating With goa ESCO𝓡ts,goa vip ESCO𝓡ts,goa hot Esco𝓡t
~15~goa 𝓡ussian ESCO𝓡ts Gi𝓡ls(09599700222)goa Call Gi𝓡Ls,goa ESCO𝓡ts Gi𝓡l,Call gi𝓡l MoDels iN goa ,goa Esco𝓡t ,goa Sexy ESCO𝓡ts,goa 𝓡ussian ESCO𝓡ts,goa Call Gi𝓡ls Numbe𝓡s,goa ESCO𝓡ts Gi𝓡ls,Esco𝓡t Gi𝓡ls in goa,goa Call gi𝓡l mobile numbe𝓡,goa fo𝓡eigne𝓡 ESCO𝓡ts,high class goa ESCO𝓡ts,goa Sexy ESCO𝓡ts,,goa Models ESCO𝓡ts,adult goa Esco𝓡t,dating With goa ESCO𝓡ts,goa vip ESCO𝓡ts,goa hot Esco𝓡t
~15~goa 𝓡ussian ESCO𝓡ts Gi𝓡ls(09599700222)goa Call Gi𝓡Ls,goa ESCO𝓡ts Gi𝓡l,Call gi𝓡l MoDels iN goa ,goa Esco𝓡t ,goa Sexy ESCO𝓡ts,goa 𝓡ussian ESCO𝓡ts,goa Call Gi𝓡ls Numbe𝓡s,goa ESCO𝓡ts Gi𝓡ls,Esco𝓡t Gi𝓡ls in goa,goa Call gi𝓡l mobile numbe𝓡,goa fo𝓡eigne𝓡 ESCO𝓡ts,high class goa ESCO𝓡ts,goa Sexy ESCO𝓡ts,,goa Models ESCO𝓡ts,adult goa Esco𝓡t,dating With goa ESCO𝓡ts,goa vip ESCO𝓡ts,goa hot Esco𝓡t
~15~goa 𝓡ussian ESCO𝓡ts Gi𝓡ls(09599700222)goa Call Gi𝓡Ls,goa ESCO𝓡ts Gi𝓡l,Call gi𝓡l MoDels iN goa ,goa Esco𝓡t ,goa Sexy ESCO𝓡ts,goa 𝓡ussian ESCO𝓡ts,goa Call Gi𝓡ls Numbe𝓡s,goa ESCO𝓡ts Gi𝓡ls,Esco𝓡t Gi𝓡ls in goa,goa Call gi𝓡l mobile numbe𝓡,goa fo𝓡eigne𝓡 ESCO𝓡ts,high class goa ESCO𝓡ts,goa Sexy ESCO𝓡ts,,goa Models ESCO𝓡ts,adult goa Esco𝓡t,dating With goa ESCO𝓡ts,goa vip ESCO𝓡ts,goa hot Esco𝓡t


~16~Call gi𝓡l mobile numbe𝓡(09599700222)goa Call Gi𝓡Ls,goa ESCO𝓡ts Gi𝓡l,Call gi𝓡l MoDels iN goa ,goa esco𝓡t gi𝓡ls ,goa Sexy ESCO𝓡ts,goa 𝓡ussian ESCO𝓡ts,goa Call Gi𝓡ls Numbe𝓡s,goa ESCO𝓡ts Gi𝓡ls,Esco𝓡t Gi𝓡ls in goa,goa Call gi𝓡l

$
0
0
~16~Call gi𝓡l mobile numbe𝓡(09599700222)goa Call Gi𝓡Ls,goa ESCO𝓡ts Gi𝓡l,Call gi𝓡l MoDels iN goa ,goa esco𝓡t gi𝓡ls ,goa Sexy ESCO𝓡ts,goa 𝓡ussian ESCO𝓡ts,goa Call Gi𝓡ls Numbe𝓡s,goa ESCO𝓡ts Gi𝓡ls,Esco𝓡t Gi𝓡ls in goa,goa Call gi𝓡l mobile numbe𝓡,goa fo𝓡eigne𝓡 ESCO𝓡ts,high class goa ESCO𝓡ts,goa Sexy ESCO𝓡ts,goa Models ESCO𝓡ts,adult goa Esco𝓡t,dating With goa ESCO𝓡ts,goa vip ESCO𝓡ts,goa hot Esco𝓡t~16~Call gi𝓡l mobile numbe𝓡(09599700222)goa Call Gi𝓡Ls,goa ESCO𝓡ts Gi𝓡l,Call gi𝓡l MoDels iN goa ,goa esco𝓡t gi𝓡ls ,goa Sexy ESCO𝓡ts,goa 𝓡ussian ESCO𝓡ts,goa Call Gi𝓡ls Numbe𝓡s,goa ESCO𝓡ts Gi𝓡ls,Esco𝓡t Gi𝓡ls in goa,goa Call gi𝓡l mobile numbe𝓡,goa fo𝓡eigne𝓡 ESCO𝓡ts,high class goa ESCO𝓡ts,goa Sexy ESCO𝓡ts,goa Models ESCO𝓡ts,adult goa Esco𝓡t,dating With goa ESCO𝓡ts,goa vip ESCO𝓡ts,goa hot Esco𝓡t
~16~Call gi𝓡l mobile numbe𝓡(09599700222)goa Call Gi𝓡Ls,goa ESCO𝓡ts Gi𝓡l,Call gi𝓡l MoDels iN goa ,goa esco𝓡t gi𝓡ls ,goa Sexy ESCO𝓡ts,goa 𝓡ussian ESCO𝓡ts,goa Call Gi𝓡ls Numbe𝓡s,goa ESCO𝓡ts Gi𝓡ls,Esco𝓡t Gi𝓡ls in goa,goa Call gi𝓡l mobile numbe𝓡,goa fo𝓡eigne𝓡 ESCO𝓡ts,high class goa ESCO𝓡ts,goa Sexy ESCO𝓡ts,goa Models ESCO𝓡ts,adult goa Esco𝓡t,dating With goa ESCO𝓡ts,goa vip ESCO𝓡ts,goa hot Esco𝓡t

~17~goa Esco𝓡t,(09599700222)goa ESCO𝓡ts,𝓡ussian Gi𝓡ls in goa High P𝓡ofile goa & goa Female ESCO𝓡ts,ESCO𝓡ts Se𝓡vices in goa,goa Esco𝓡t Se𝓡vice,Female Esco𝓡t in goa,𝓡ussian Gi𝓡ls in goa,Call Gi𝓡ls in goa,Call gi𝓡l in goa,goa

$
0
0
~17~goa Esco𝓡t,(09599700222)goa ESCO𝓡ts,𝓡ussian Gi𝓡ls in goa High P𝓡ofile goa & goa Female ESCO𝓡ts,ESCO𝓡ts Se𝓡vices in goa,goa Esco𝓡t Se𝓡vice,Female Esco𝓡t in goa,𝓡ussian Gi𝓡ls in goa,Call Gi𝓡ls in goa,Call gi𝓡l in goa,goa Call gi𝓡l,Independent ESCO𝓡ts in goa,goa Independent Esco𝓡t,goa ESCO𝓡ts Se𝓡vices~17~goa Esco𝓡t,(09599700222)goa ESCO𝓡ts,𝓡ussian Gi𝓡ls in goa High P𝓡ofile goa & goa Female ESCO𝓡ts,ESCO𝓡ts Se𝓡vices in goa,goa Esco𝓡t Se𝓡vice,Female Esco𝓡t in goa,𝓡ussian Gi𝓡ls in goa,Call Gi𝓡ls in goa,Call gi𝓡l in goa,goa Call gi𝓡l,Independent ESCO𝓡ts in goa,goa Independent Esco𝓡t,goa ESCO𝓡ts Se𝓡vices
~17~goa Esco𝓡t,(09599700222)goa ESCO𝓡ts,𝓡ussian Gi𝓡ls in goa High P𝓡ofile goa & goa Female ESCO𝓡ts,ESCO𝓡ts Se𝓡vices in goa,goa Esco𝓡t Se𝓡vice,Female Esco𝓡t in goa,𝓡ussian Gi𝓡ls in goa,Call Gi𝓡ls in goa,Call gi𝓡l in goa,goa Call gi𝓡l,Independent ESCO𝓡ts in goa,goa Independent Esco𝓡t,goa ESCO𝓡ts Se𝓡vices

~19~High Models ESCO𝓡ts in goa,(09599700222) goa Esco𝓡t 𝓡ussian Call Gi𝓡ls in goa,goa Female ESCO𝓡ts,ESCO𝓡ts Se𝓡vices in goa,goa Esco𝓡t Se𝓡vice,Female Esco𝓡t in goa,Independent ESCO𝓡ts in goa,goa Independent Esco𝓡t,goa

$
0
0
~19~High Models ESCO𝓡ts in goa,(09599700222) goa Esco𝓡t 𝓡ussian Call Gi𝓡ls in goa,goa Female ESCO𝓡ts,ESCO𝓡ts Se𝓡vices in goa,goa Esco𝓡t Se𝓡vice,Female Esco𝓡t in goa,Independent ESCO𝓡ts in goa,goa Independent Esco𝓡t,goa ESCO𝓡ts Se𝓡vices High P𝓡ofile goa Independent Gi𝓡ls & 𝓡ussian Gi𝓡ls,goa ESCO𝓡ts Gi𝓡ls,Esco𝓡t Gi𝓡ls in goa,goa Call Gi𝓡l~19~High Models ESCO𝓡ts in goa,(09599700222) goa Esco𝓡t 𝓡ussian Call Gi𝓡ls in goa,goa Female ESCO𝓡ts,ESCO𝓡ts Se𝓡vices in goa,goa Esco𝓡t Se𝓡vice,Female Esco𝓡t in goa,Independent ESCO𝓡ts in goa,goa Independent Esco𝓡t,goa ESCO𝓡ts Se𝓡vices High P𝓡ofile goa Independent Gi𝓡ls & 𝓡ussian Gi𝓡ls,goa ESCO𝓡ts Gi𝓡ls,Esco𝓡t Gi𝓡ls in goa,goa Call Gi𝓡l
~19~High Models ESCO𝓡ts in goa,(09599700222) goa Esco𝓡t 𝓡ussian Call Gi𝓡ls in goa,goa Female ESCO𝓡ts,ESCO𝓡ts Se𝓡vices in goa,goa Esco𝓡t Se𝓡vice,Female Esco𝓡t in goa,Independent ESCO𝓡ts in goa,goa Independent Esco𝓡t,goa ESCO𝓡ts Se𝓡vices High P𝓡ofile goa Independent Gi𝓡ls & 𝓡ussian Gi𝓡ls,goa ESCO𝓡ts Gi𝓡ls,Esco𝓡t Gi𝓡ls in goa,goa Call Gi𝓡l
~19~High Models ESCO𝓡ts in goa,(09599700222) goa Esco𝓡t 𝓡ussian Call Gi𝓡ls in goa,goa Female ESCO𝓡ts,ESCO𝓡ts Se𝓡vices in goa,goa Esco𝓡t Se𝓡vice,Female Esco𝓡t in goa,Independent ESCO𝓡ts in goa,goa Independent Esco𝓡t,goa ESCO𝓡ts Se𝓡vices High P𝓡ofile goa Independent Gi𝓡ls & 𝓡ussian Gi𝓡ls,goa ESCO𝓡ts Gi𝓡ls,Esco𝓡t Gi𝓡ls in goa,goa Call Gi𝓡l

~21~Call Gi𝓡ls in goa,(09599700222)goa Call Gi𝓡l,Call Gi𝓡l in goa,goa ESCO𝓡ts,goa Esco𝓡t,𝓡ussian Gi𝓡ls in goa,goa Female ESCO𝓡ts,ESCO𝓡ts Se𝓡vices in goa,goa Esco𝓡t Se𝓡vice,Female Esco𝓡t in goa,Independent ESCO𝓡ts in goa,goa

$
0
0
~21~Call Gi𝓡ls in goa,(09599700222)goa Call Gi𝓡l,Call Gi𝓡l in goa,goa ESCO𝓡ts,goa Esco𝓡t,𝓡ussian Gi𝓡ls in goa,goa Female ESCO𝓡ts,ESCO𝓡ts Se𝓡vices in goa,goa Esco𝓡t Se𝓡vice,Female Esco𝓡t in goa,Independent ESCO𝓡ts in goa,goa Independent Esco𝓡t,goa ESCO𝓡ts Se𝓡vices~21~Call Gi𝓡ls in goa,(09599700222)goa Call Gi𝓡l,Call Gi𝓡l in goa,goa ESCO𝓡ts,goa Esco𝓡t,𝓡ussian Gi𝓡ls in goa,goa Female ESCO𝓡ts,ESCO𝓡ts Se𝓡vices in goa,goa Esco𝓡t Se𝓡vice,Female Esco𝓡t in goa,Independent ESCO𝓡ts in goa,goa Independent Esco𝓡t,goa ESCO𝓡ts Se𝓡vices
~21~Call Gi𝓡ls in goa,(09599700222)goa Call Gi𝓡l,Call Gi𝓡l in goa,goa ESCO𝓡ts,goa Esco𝓡t,𝓡ussian Gi𝓡ls in goa,goa Female ESCO𝓡ts,ESCO𝓡ts Se𝓡vices in goa,goa Esco𝓡t Se𝓡vice,Female Esco𝓡t in goa,Independent ESCO𝓡ts in goa,goa Independent Esco𝓡t,goa ESCO𝓡ts Se𝓡vices
~21~Call Gi𝓡ls in goa,(09599700222)goa Call Gi𝓡l,Call Gi𝓡l in goa,goa ESCO𝓡ts,goa Esco𝓡t,𝓡ussian Gi𝓡ls in goa,goa Female ESCO𝓡ts,ESCO𝓡ts Se𝓡vices in goa,goa Esco𝓡t Se𝓡vice,Female Esco𝓡t in goa,Independent ESCO𝓡ts in goa,goa Independent Esco𝓡t,goa ESCO𝓡ts Se𝓡vices

Can we create synonyms for database name

$
0
0

 In my stored procedure I am pointing two data base so i have to call object like dbname.schema.objectname ,, but there is chance of database rename, so can we create synonyms for database and strat to pointing that so even db name get chnage our procedure will not break or no need to chnage all SPs.  Is there any alternative we have.

Thanks


Regards Vikas Pathak

How many recursions finished already?

$
0
0

Hello,

My recursive CTE query is dealing with quite massive data volume (tens of millions of records) and there could be up to 3.5k iterations thus the query is running for many hours. Naturally, this is not the only process running on the server thus processing time varies. I'd like to track query performance while it's running so that I can better estimate time to completion. Is there a way to figure out which iteration is currently processed? I bet server must have this information somewhere, but I can't locate appropriate SYS table and column.

Thank you very much for any advice or hint!

Daniel

How to Import From the Xlsx-XML(XLSX file Saved in XML Format) Data in to SQL Server

$
0
0

Hi  All ,

My name is Srinivas.I have one question ?

 Any one please help how to read the data from Xlsx-XML Template ( Xlsx Template is saved in XML Formate) from SQL Server query . If we Open this template It is Opened in Xlsx format and it does'nt show any tags or cells.

For Ex :   Like following ex  read data from  Xlsx file using OPENROWSET

Select * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0', 'Excel 12.0;Database=C:\69\Test.xlsx;HDR=YES',
                'SELECT * FROM [Sheet1$]') Spread.

<Cell ss:StyleID="s71"><Data ss:Type="String">Title</Data><NamedCell
      ss:Name="Print_Titles"/></Cell>
    <Cell ss:StyleID="s72"><Data ss:Type="String">Type</Data><NamedCell
      ss:Name="Print_Titles"/></Cell>
    <Cell ss:StyleID="s72"><Data ss:Type="String">Sub-Type</Data><NamedCell
      ss:Name="Print_Titles"/></Cell>
    <Cell ss:StyleID="s71"><Data ss:Type="String">Reference</Data><NamedCell
      ss:Name="Print_Titles"/></Cell>
    <Cell ss:StyleID="s73"><Data ss:Type="String">Country</Data><NamedCell
      ss:Name="Print_Titles"/></Cell>
    <Cell ss:StyleID="s74"><Data ss:Type="String">TestFirm</Data><NamedCell
      ss:Name="Print_Titles"/></Cell>
    <Cell ss:StyleID="s74"><Data ss:Type="String">Manager</Data><NamedCell
      ss:Name="Print_Titles"/></Cell>
    <Cell><Data ss:Type="String"> Manager2</Data><NamedCell
      ss:Name="Print_Titles"/></Cell>
    <Cell ss:StyleID="s74"><Data ss:Type="String">Party</Data><NamedCell
      ss:Name="Print_Titles"/></Cell>    
   </Row>
   <Row ss:AutoFitHeight="0" ss:Height="27.5625">
    <Cell ss:StyleID="s79"><Data ss:Type="String">Test Name</Data></Cell>
    <Cell><Data ss:Type="String">Test Type</Data></Cell>
    <Cell><Data ss:Type="String">TestSbtype</Data></Cell>
    <Cell ss:StyleID="s79"><Data ss:Type="String">Reference67854h</Data></Cell>
    <Cell ss:StyleID="s80"><Data ss:Type="String">USA</Data></Cell>
    <Cell ss:StyleID="s80"><Data ss:Type="String">jk0001</Data></Cell>
    <Cell ss:StyleID="s82"><Data ss:Type="String">test@gmail.com</Data></Cell>
    <Cell ss:StyleID="s83"><Data ss:Type="String">test@gmail.com</Data></Cell>
    <Cell ss:StyleID="s80"><Data ss:Type="String">UNKNOWN</Data></Cell>
    <Cell ss:StyleID="s84"><Data ss:Type="String">vkv0058</Data></Cell>
    <Cell ss:StyleID="s80"><Data ss:Type="String">CLOSED PER MM 8/15/2006 EM</Data></Cell>
     <Cell ss:StyleID="s86"><Data ss:Type="DateTime">2008-02-26T00:00:00.000</Data></Cell>
   </Row>

s there any solution ... for this .. ( It is not a  XML Doc.... XLSX s saved in XML 2003 format) If we Open this It Opens in like a Xlsx doc...not showing any tags or elements...

Thanks in advance...


sql server 2008 r2 ram usage

$
0
0

hello guys im just wondering about ram usage of sqlserver is stock even theres no transaction open. sample without transaction ram usage in task manager is 1gb , now i open may localhost site and view some data only view - ram usage now is up to 3gb. now i close the localhost site ram usage is stock in 3gb even theres no transaction exist. is there possible way to release left ram usage by sqlserver? 

thanks in advance msdn family


SQL 2012 Update Statistics Maintenance Plan

$
0
0

 Hi All

Is anyone aware of any issues on SQL 2012 regarding maintenance plans for update statistics.

I have migrated a system to SQL 2012 from SQL 2008, I created a maintenance plan to update all stats with a sampling rate of 15%. The job ran for over 3 days.

On SQL 2008, the job runs for 2 hours.

Nothing has changed regarding the workload on the system and the absolute only change was the upgrade to SQL 2012.

Obviously there is something very wrong with the release.

Any ideas?

Thanks

Problem with backup MS SQL 2008 when database has 2 or mare logs

$
0
0

 Hello!

I have database, that has 2 ldf. I try to do backup log via a program  that uses ODBC Driver (SQL Server Native Client 10.0 ODBC ).  But the backup file is not created. And application doesn't catch exception. Application  connects to MS SQL Server using information of user, that has all roles to do backup. Database has FULL RECOVERY model. When I performed a command that is used in the application, MS SQL Server does backup log and backup log is created. My application uses the this connection string: 


   oss << "DRIVER={" << MSSQLDriver.c_str() << "};"
            << "Server="<<address.c_str()<<";" 
            << "Network=DBMSSOCN;"
            << "Initial Catalog=my_database_1;"
            << authTypeString.c_str();
        if (port > 0) {
            oss << "Port = " << port << ";"
                << "Address="<<address.c_str()<<"," <<port<<";";

 , where address is IP adress

Application use this command: 

BACKUP LOG [my_database_1]   TO  
DISK = N'C:\mssql_backup_via_idr\my_database_1_log_backup_1374.bak' 

This command is performed successfully via MSSQL Managment Studio, but unsuccessfully via application that uses a driver SQL Server Native Client 10.0 ODBC.

I don't understand why backup log isn't created. Does problem depend on the driver?  

Thanks

Changing column in NOT NULL. Why is there so much transaction log activity on compressed tables?

$
0
0

Hi guys,

the setup is as following: SQL Server 2008R2, recovery model FULL in order to better track what's going on in the transaction log.

CREATE TABLE dbo.justnumbers(id INT IDENTITY, number FLOAT NULL);
CREATE UNIQUE CLUSTERED INDEX CI_number ON dbo.justnumbers(id);
--Fill the table with 500K unique numbers (no nulls).

Now I want to check how much traffic in the transaction log will produce changing the column 'number' in not null.

CHECKPOINT;
ALTER TABLE justnumbers ALTER COLUMN number FLOAT NOT NULL; --1 sec
SELECT * FROM fn_dblog(NULL, NULL);
--31 records in the transaction log, touching olny the metadata such as sys.sysrscols.clst

Nothing needs to be updated in the table, null bitmap is anyway always present for all columns (see "three null bitmap myths" by Paul Randal http://www.sqlskills.com/blogs/paul/a-sql-server-dba-myth-a-day-630-three-null-bitmap-myths/). Everything is fine.

Now I want to try the same with a page compressed table.

DROP TABLE dbo.justnumbers;
CREATE TABLE dbo.justnumbers(id INT IDENTITY, number FLOAT NULL);
CREATE UNIQUE CLUSTERED INDEX CI_number ON dbo.justnumbers(id);
--Fill the table with 500K unique numbers (no nulls).

ALTER TABLE dbo.justnumbers REBUILD PARTITION = ALL WITH (DATA_COMPRESSION = PAGE);
CHECKPOINT;
ALTER TABLE justnumbers ALTER COLUMN number FLOAT NOT NULL; --4 sec
SELECT * FROM fn_dblog(NULL, NULL);
--530K records in the transaction log
What the heck is going on there? Thanks for help

i have having deadlocks on this SP, Any quick suggestion please

$
0
0
ALTER PROCEDURE [dbo].[NIC_OA_HM_FullTextSearch]  
    @lEnterprise INT,  
    @szSearch VARCHAR(1000),  
    @dStart DATETIME = NULL,  
    @dEnd DATETIME = NULL,  
    @lOffice INT = NULL,  
    @lPhysician INT = NULL,  
    @szSection VARCHAR(100) = 'All'  
AS   
    SET TRANSACTION ISOLATION LEVEL READ COMMITTED  
    IF @dStart IS NULL   
        BEGIN  
            SET @dStart = '1900-01-01'  
        END  
    IF @dEnd IS NULL   
        BEGIN  
            SET @dEnd = '9000-01-01'  
        END  
    IF @lPhysician = 0   
        BEGIN  
            SET @lPhysician = NULL  
        END  
    IF @szSection = 'All'   
        BEGIN  
            SET @szSection = NULL  
        END  
    SET @szSearch = '%' + @szSearch + '%'   
    DECLARE @Search TABLE  
        (  
          lPatient INT,  
          dDate DATETIME,  
          lID INT,  
          szType VARCHAR(200),  
          szData NTEXT  
        )   
    INSERT  INTO @Search  
            (  
              lPatient,  
              dDate,  
              lID,  
              szType,  
              szData  
            )  
 --Patient Notes  
            SELECT  lPatient,  
                    dDate,  
                    lID,  
                    szType,  
                    szData  
            FROM    ( SELECT    lID AS lPatient,  
                                dlastUpdated AS dDate,  
                                lID AS lID,  
                                'Patient Notes' AS szType,  
                                szNotes szData  
                      FROM      Patient  
                      WHERE     lEnterprise = @lEnterprise  
                                AND szNotes LIKE @szSearch  
                                AND lPhysicianResponsible = COALESCE(@lPhysician, lPhysicianResponsible)  
                      UNION ALL   
  --Patient Alerts  
                      SELECT    lPatient,  
                                pat.dlastUpdated AS dDate,  
                                PA.lID,  
                                'Patient Alerts' AS szType,  
   szAlert AS szData  
                      FROM      PatientAlert PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND nRecordStatus = 1  
                                AND szAlert LIKE @szSearch  
                                AND lPhysicianResponsible = COALESCE(@lPhysician, lPhysicianResponsible)  
                      UNION ALL   
  --Allergy Comments  
                      SELECT    lPatient,  
                                dLastModified AS dDate,  
                                PA.lID,  
                                'Allergy Comments' AS szType,  
                                szComment AS szData  
                      FROM      CHAllergy PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND nRecordStatus = 1  
                                AND szComment LIKE @szSearch  
                                AND dLastModified BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Past Medical History  
                      SELECT    lPatient,  
                                PA.dLastModified AS dDate,  
                                PA.lID,  
                                'Past Medical History' AS szType,  
                                szMedicalHistory AS szData  
                      FROM      CHMedicalHistory PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND szMedicalHistory LIKE @szSearch  
                                AND dLastModified BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Medical Alerts  
                      SELECT    lPatient,  
                                PA.dlastModified dDate,  
                                PA.lID,  
                                'Medical Alert' AS szType,  
                                szAlert AS szData  
                      FROM      CHAlert PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND szAlert LIKE @szSearch  
                                AND dLastModified BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Immunizations Comments  
                      SELECT    lPatient,  
                                dLastModified AS dDate,  
                                PA.lID,  
                                'Immunizations Comments' AS szType,  
                                szComment AS szData  
                      FROM      CHPreMASTImmunizations PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND nRecordStatus = 1  
                                AND szComment LIKE @szSearch  
                                AND dLastModified BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Injections Comments  
                      SELECT    lPatient,  
                                dLastModified dDate,  
                                PA.lID,  
                                'Injections Comments' AS szType,  
                                szComments szData  
                      FROM      CHPreMASTInjections PA  
   INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND nRecordStatus = 1  
                                AND szComments LIKE @szSearch  
                                AND dLastModified BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Problem List Comments  
                      SELECT    lPatient,  
                                PA.dLastUpdated AS dDate,  
                                PA.lID,  
                                'Problem List Comments' asType,  
                                szComments szData  
                      FROM      CHProblemList PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND nRecordStatus = 1  
                                AND szComments LIKE @szSearch  
                                AND PA.dLastUpdated BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Procedures Comments  
                      SELECT    lPatient,  
                                dLastModified AS dDate,  
                                PA.lID,  
                                'Procedures Comments' AS szType,  
                                szComments AS szData  
                      FROM      CHHospitalizations PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND nRecordStatus = 1  
                                AND szComments LIKE @szSearch  
                                AND dLastModified BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Social History Comments  
                      SELECT    lPatient,  
                                dLastModified AS dDate,  
                                PA.lID,  
                                'Social History Comments' AS szType,  
                                szComments AS szData  
                      FROM      CHSocialHistory PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND nRecordStatus = 1  
                                AND szComments LIKE @szSearch  
                                AND dLastModified BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Family History Comments  
                      SELECT    lPatient,  
                                dLastModified AS dDate,  
                                PA.lID,  
                                'Family History Comments' AS szType,  
                                szOther szData  
                      FROM      CHFamilyHistory PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND nRecordStatus = 1  
                                AND szOther LIKE @szSearch  
                                AND dLastModified BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Rx Instructions  
                      SELECT    PA.lPatient,  
                                presc.dFillDate AS dDate,  
                                PA.lID,  
                                'Rx Patient Instructions' AS szType,  
                      meddir.szInstructionOther AS szData  
                      FROM      Medication PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                                INNER JOIN MedicationDirection meddir ON PA.lID = meddir.lMedication  
                                INNER JOIN Map_MedicationToPrescription map ON PA.lID = map.lMedication  
                                                                               AND meddir.lID = map.lMedicationDirection  
                                INNER JOIN Prescription presc ON map.lPrescription = presc.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND presc.nRecordStatus = 1  
                                AND meddir.szInstructionOther LIKE @szSearch  
                                AND presc.dCreated BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Rx Pharmacist Instructions  
                      SELECT    PA.lPatient,  
                                presc.dFillDate AS dDate,  
                                PA.lID,  
                                'Rx Pharmacist Instructions' szType,  
                                meddir.szInstructionPhar AS szData  
                      FROM      Medication PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                                INNER JOIN MedicationDirection meddir ON PA.lID = meddir.lMedication  
                                INNER JOIN Map_MedicationToPrescription map ON PA.lID = map.lMedication  
                                                                               AND meddir.lID = map.lMedicationDirection  
                                INNER JOIN Prescription presc ON map.lPrescription = presc.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND presc.nRecordStatus = 1  
                                AND meddir.szInstructionPhar LIKE @szSearch  
                                AND presc.dCreated BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Rx Notes  
                      SELECT    PA.lPatient,  
                                presc.dFillDate AS dDate,  
                                PA.lID,  
                                'Rx Notes' szType,  
                                meddir.Annotation AS szData  
                      FROM      Medication PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                                INNER JOIN MedicationDirection meddir ON PA.lID = meddir.lMedication  
                                INNER JOIN Map_MedicationToPrescription map ON PA.lID = map.lMedication  
                                                                               AND meddir.lID = map.lMedicationDirection  
                                INNER JOIN Prescription presc ON map.lPrescription = presc.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND presc.nRecordStatus = 1  
                                AND meddir.Annotation LIKE @szSearch  
                                AND presc.dCreated BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Plan Notes  
                      SELECT    lPatient,  
                                PA.dCurrentDate as dDate, 
                                PA.lID,  
                                'Plan Notes' AS szType, 
                                szPlanNotes AS szData  
                      FROM      ProgressNote PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND nRecordStatus = 1  
                                AND szPlanNotes LIKE @szSearch  
                                AND PA.dCurrentDate BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Subjective/Objective Notes  
                      SELECT    lPatient,  
                                PA.dCurrentDate AS dDate,  
                                PA.lID,  
                                'Subjective/Objective Notes' as szType,
                                PNCN.szClinicalNotes  AS szData
                      FROM      ProgressNote PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                                INNER JOIN ProgressNoteClinicalNote PNCN ON PA.lID = PNCN.lProgressNote  
                      WHERE     lEnterprise = @lEnterprise  
                                AND PA.nRecordStatus = 1  
                                AND PNCN.szClinicalNotes LIKE @szSearch  
                                AND PA.dCurrentDate BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Lab Reports Comments  
                      SELECT    lPatient,  
                                PA.dDateFiled AS dDate,  
                                PA.lID,  
                                'Lab Reports Comments' AS szType,  
                                szComments AS szData  
                      FROM      PhysicianLabReports PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND nRecordStatus = 1  
                                AND szComments LIKE @szSearch  
                                AND PA.dDateFiled BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --DI Reports Comments  
                      SELECT    lPatient,  
                                PA.dDateFiled AS dDate,  
                                PA.lID,  
                                'DI Reports Comments' AS szType,  
                                szComments AS szData  
                      FROM      PhysicianXRayReports PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND nRecordStatus = 1  
                                AND szComments LIKE @szSearch  
                                AND PA.dDateFiled BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Correspondence Reports Comments  
                      SELECT    lPatient,  
                                PA.dDateFiled AS dDate,  
                                PA.lID,  
                                'Correspondence Comments' AS szType,  
                                szCorrespondence AS szData  
                      FROM      CorrespondenceReports PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND nRecordStatus = 1  
                                AND szCorrespondence LIKE @szSearch  
                                AND PA.dDateFiled BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Free Form Prescriptions  
                      SELECT    lPatient,  
                                PA.dDatePrescribed AS dDate,  
    PA.lID,  
                                'Free Form Prescriptions' AS szType,  
                                szPrescription szData  
                      FROM      CHPreMASTFreeFormPrescription PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND nRecordStatus = 1  
                                AND szPrescription LIKE @szSearch  
                                AND PA.dDateprescribed BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Free Form Prescriptions  
                      SELECT    lPatient,  
                                PA.dLastModified AS dDate,  
                                PA.lID,  
                                'Free Form Prescriptions' AS szType,  
                                szPrescription AS szData  
                      FROM      FreeFormPrescription PA  
                                INNER JOIN Patient pat ON PA.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND nRecordStatus = 1  
                                AND szPrescription LIKE @szSearch  
                                AND PA.dLastModified BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                      UNION ALL   
  --Outgoing Consultation Letter  
                      SELECT    PN.lPatient,  
                                PA.dDateCreated AS dDate,  
                                PA.lID,  
                                'Outgoing Consultation Letter' AS szType,  
                                'N/A' AS szData  
                      FROM      Consultants PA  
                                INNER JOIN ConsultationLetter_ToConsultant cons ON PA.lId = cons.lConsultant  
                                INNER JOIN map_ConsultationToProgressNote map ON PA.lId = map.lConsultant  
                                INNER JOIN ProgressNote PN ON map.lProgressNote = PN.lID  
                                INNER JOIN Patient pat ON PN.lPatient = pat.lID  
                      WHERE     lEnterprise = @lEnterprise  
                                AND PA.nRecordStatus = 1  
                                AND cons.stLetter LIKE @szSearch  
                                AND PA.dDateCreated BETWEEN @dStart AND @dEnd  
                                AND Pat.lPhysicianResponsible = COALESCE(@lPhysician, Pat.lPhysicianResponsible)  
                    ) AS dt  
    IF @lOffice <> 0   
        BEGIN  
            SELECT  pat.szLast,  
                    pat.szFirst,  
                    pat.szChartNum,  
                    s.szType,  
                    s.dDate,  
                    s.szData,
                    s.lID  
            FROM    @Search s  
                    INNER JOIN Patient pat ON s.lPatient = pat.lID  
                    INNER JOIN Map_patientToOffice map ON pat.lID = map.lPatient  
                                                          AND map.lOffice = @lOffice  
            WHERE   s.szType = COALESCE(@szSection, s.sztype)  
            ORDER BY pat.szlast,  
                    pat.szFirst  
        END  
    ELSE   
        BEGIN  
            SELECT  pat.szLast,  
                    pat.szFirst,  
                    pat.szChartNum,  
                    s.szType,  
                    s.dDate,  
                    s.szData,
                    s.lID  
            FROM    @Search s  
                    INNER JOIN Patient pat ON s.lPatient = pat.lID  
            WHERE   s.szType = COALESCE(@szSection, s.sztype)  
            ORDER BY pat.szlast,  
                    pat.szFirst  
        END  


k

Negative numbers found within sys.dm_io_virtual_file_stats

$
0
0

VIRTUAL FILE STATS - Any idea why a particualr server would be "bouncing" statistics?

*** This DOES NOT appear related to the sample_ms column issue ***

  1. Process collects sys.dm_io_virtual_file_stats and writes to custom table, on 15 min interval.  This has been running since last Tuesday, using SQL Server Agent Job.
  2. This occurs for multiple databases and multiple files, but for READS ONLY.  WRITES appear to increment. 
  3. The same type of data is present in the custom table, or if I query the data directly out of sys.dm_io_virtual_file_stats.
  4. The server just "rolled over" sample_ms column, but this was occuring previously.
  5. I validated the elapsed time based on delta of insertdate in the custom table and by delta of sample_ms.
  6. Configuration:  10.50.2500.0 / 128GB / 24 lproc / 64-bit
  7. Server is new to our group.  It is SAN attached (no details yet).

SAMPLE DATA.

The query properly joins a recorded copy of VFS to determine the previous record for the same DB/FileID.  Notice how the READ values (CNT, BYTES, STALL) will decrement between subsequent recordings, then return back

InsertDatetime   RID   sample_ms   ---------READ------------ --------WRITE------------
                                   CNT   BYTES      STALL    CNT   BYTES      STALL
---------------- ----- ----------- ----- ---------- -------- ----- ---------- --------
2013-08-20 15:30 221   1851413611  62    3948544    785      0     0          0       
2013-08-20 15:45 369   1852313363  62    3948544    785      0     0          0       
2013-08-20 16:00 517   1853213161  57    3620864    827      0     0          0       
2013-08-20 16:15 663   1854113349  61    3883008    882      0     0          0       
2013-08-20 16:30 811   1855013428  61    3883008    882      0     0          0       
2013-08-20 16:45 959   1855913086  61    3883008    882      0     0          0       
2013-08-20 17:00 1107  1856812884  57    3620864    1212     0     0          0       
2013-08-20 17:15 1255  1857712978  61    3883008    1258     0     0          0       
2013-08-20 17:30 1403  1858613073  61    3883008    1258     0     0          0       
2013-08-20 17:45 1551  1859513167  61    3883008    1258     0     0          0       
2013-08-20 18:00 1699  1860412435  57    3620864    975      0     0          0       
2013-08-20 18:15 1847  1861312655  61    3883008    1010     0     0          0       
2013-08-20 18:30 1995  1862212749  61    3883008    1010     0     0          0       
2013-08-20 18:45 2143  1863112953  61    3883008    1010     0     0          0       
2013-08-20 19:00 2291  1864013079  54    3424256    955      0     0          0       
2013-08-20 19:15 2437  1864912237  61    3883008    1033     0     0          0   

Dropped FileGroup/Files still show up in Sys.Master_Files and MSDB.dbo.backupfile

$
0
0

 Hello all,

I am wondering why is that when a filegroup/file is removed from the DB, it still shows up in sys.master_files and msdb.dbo.backupfile.

To reproduce, just create a database and add a filegroup or file to an existing file and delete that filegroup\file.

Now,Query Sys.master_files and you can still see the deleted Filegroup/file for the database. Of course the State_desc shows as 'Offline' but I am wondering why it is not removed completely.

Also, if you take a backup and query the msdb.dbo.backupfile, it will show up there as well. Again, State_desc = 'Dropped' but why is it not removed completely.

Thank you and have a wonderful day.


Hope it Helps!!


How to use Extended Events to collect Security Audit Infomation?

$
0
0

I am trying to migrate the SQL profiler traces to Extended Events in SQL2012. I have not had any luck in replicating the profiler function of tracing the security events, such as Audit add DB user event, audit password change, etc

Any ideas how to do this?

How to store decimal numbers as options group values?

$
0
0

Hello all,

I have a major problem!

I spent 10 days in making a survey using Access 2007 trying to impress my boss by doing something new, so after I filled the forms with option groups I discovered that I can't store decimal numbers in their values! for example:

If I have an option group called "Ranking" and I have 3 options like:

1

1.5

2.5

and I want to store the real value as it is in the database without rounding! because every time I modify the value in the properties of any option Access keep rounding automatically!

please make my day and tell me how to do it :( I tried to change the column property and set it to number and decimal but still am not able to store decimal values!

Thanks in advance for you all

How to fix the orphaned users..

$
0
0

Hi ,

we have 200 orphaned users, those 200 users how to fix it with out generate the scripts.

automatation of killing blocked sessions

$
0
0

is there any automated procedure or script for killing blocked, suspended and sleeping sessions?

other than manually executing kill spid in the command line?

memoryclerk consumes a lot of memory

$
0
0

Hi  guys,

Could you explain me why memoryclerk_sqloptimizer consumes a lot of memory and how to solve it (release memory)?

Please have a look reports below.

1. Before

2. After 5 days

So we can  see that sqloptimizer became to consume about 1.9Gb instead of 1Gb  initially (in 1 day after server restart this value was just about 700Mb).

After some days this behavior will lead to server  to be almost unavailable for application.

Please suggest what can be a cause and how I can change this situation.

Max memory 8Gb (server 32Gb).

Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64)

Viewing all 15889 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>