Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

Microsoft SQL Server

Microsoft SQL Server database RDBMS - Ask questions about MSSQL administration, queries, errors, xml, data access, transact-sql, tools, mirroring, integration, setup, stored procedures, merging and more.
Posting Guidelines
Post Reply? | Posted by: iam_clint | Last post by iam_clint, 620 days ago
Posting GuideLines Please follow these guidelines when posting questions. Submitting clear and concise questions allow those reading to understand... more »
sticky
SubQuery Question
Post Reply? | Posted by: HeavenCore | Last post by HeavenCore, Today
Hello Everyone, i have a rather chunky Query: SELECT top 100 percent EMDET.DET_NUMBERA, EMDET.DET_G1_NAME1A, EMDET.DET_SURNAMEA,... more »
Mulpliplcation of all values in a column plus converting negative values
3 Replies | Posted by: bengevik | Last post by bengevik, Today
I need to multiplicate all the values in a coloumn with a constant and returning them in a (eventually new) column. My second problem is that there... more »
Match two tables.
2 Replies | Posted by: rsrinivasan | Last post by rsrinivasan, Today
Hi all, I am using SQLServer2000. I have two same tables. I want a query to check whether these two tables have same data. How can i check... more »
How are parameters passed in Triggers?
6 Replies | Posted by: nitindel | Last post by ck9663, Yesterday
Hi All, May i know how do we pass parameters in Triggers and if no parameters are passed then how they get fired...?? Thanks & Regards Nitin... more »
SQL Permissions
1 Reply | Posted by: OuTCasT | Last post by ck9663, Yesterday
i Loaded SQL Express on my notebook and i run my application on it which creates new database. I get error 'Create Database permission denied in... more »
Alter Or Create Procedure?
2 Replies | Posted by: devlin | Last post by devlin, Yesterday
HI. I have to Alter a procedure if it exists or Create the procedure if it doesn't in SQL Server 2005. I can manage to determine if it exists or... more »
Reporting Services close download interface without exporting
2 Replies | Posted by: whoswho | Last post by whoswho, Yesterday
Good day All, When I export on a workstation from reporting services to excel the download window closes without the file being created. The file is... more »
SQL caclcualted field
1 Reply | Posted by: alangrn26 | Last post by Delerna, Yesterday
How do I create the SQL for the following. I have a table of meetings, but I want to generate a calculated field for each discussion point relating... more »
Stored Procedure
1 Reply | Posted by: sweatha | Last post by deepuv04, 3 days ago
Hi I have to convert the following query into stored procedure "select DoctorMaster.FirstName+''+DoctorMaster.MiddleName+''+DoctorMaster.LastName... more »
Dynamic ORDER BY
4 Replies | Posted by: yakatz | Last post by deepuv04, 3 days ago
I am working on adding sorting functionality to an online store. The query works fine when it has a hard coded ORDER BY, but not when the ORDER BY is... more »
Sql query date problem
3 Replies | Posted by: fcccc | Last post by ck9663, 3 days ago
Hello guys, I need some help. I have a table with a date field and i have a problem when i want choose data between two dates, like for example:... more »
Faster way to check if a record needs updating
1 Reply | Posted by: abev | Last post by Delerna, 3 days ago
First I check if the ABBR exists, then I update it. It seems like I am making 2 requests - 99% of the time I would never send the wrong parameters so... more »
Foreign key
2 Replies | Posted by: sva0008 | Last post by akashazad, 3 days ago
I have a table name product that have column productCode (primary key), name address , ph , warehouse . I want to create a new table with columns... more »
Variable database name in stored procedures
2 Replies | Posted by: ssouhrada | Last post by ssouhrada, 3 days ago
I am trying to create a stored procedure that runs a smaller query first to determine the database to run the second query on. Below is a sample... more »
SQL Query Assistance
1 Reply | Posted by: Mark Braithwaite | Last post by debasisdas, 3 days ago
Hi We are using Microsoft CRM and we have exported a list of service activities to a dynamic Excel worksheet. I have attempted to insert the name of... more »
mSQL + Perl = Phantom rows
Post Reply? | Posted by: Rebles | Last post by Rebles, 4 days ago
I'm writing a PERL script to access and insert rows into a Microsoft SQL. i'm using MS SQL Server Management Studio Express (2005) to architect... more »
Crystal reports
Post Reply? | Posted by: OuTCasT | Last post by OuTCasT, 5 days ago
i have a payroll program that can start new companies, a company has its own database. they will always be the same tables etc inside all the... more »
Securing Tables/Views
9 Replies | Posted by: wquatan | Last post by b0010100, 6 days ago
Hi, Is there a possibility to allow a user only for a particular view, without allowing him to open the tables directly ? Couldn't find a way,... more »
Insert a record that has been deleted
5 Replies | Posted by: raghulvarma | Last post by b0010100, 6 days ago
I need to insert the records in table2 that have been deleted in table1 how should I proceed? Will trigger help me out? If so some one plz help how... more »
Calculating Opentime between several records.Using SQL Server 2000.
1 Reply | Posted by: RubyRed | Last post by Delerna, 6 days ago
Using SQL Server 2000. Basically, I am trying to calculate each minute of an employee scheduled time during their work shift. In the table below... more »
Log file needs shrinking
2 Replies | Posted by: Joell | Last post by Joell, 6 days ago
Hello, I need help with shrinking the actual log file. I keep shrinking the trans logs but then it just reverts back to a 1 gig size trans log fille... more »
How to compare date,month,year
2 Replies | Posted by: deepikashalini | Last post by ck9663, 7 days ago
hi, Im storing Issue date in database. Issuedate stored as varchar. and then compare to Passing string date('03/06/2008') what is query to... more »
SQL Query Email
3 Replies | Posted by: benchpolo | Last post by ck9663, 7 days ago
I have a data table that contains STATUS and ADJCODE. I need to write s SQL query that counts records by STATUS and ADJCODE and send an email to a... more »
Calculating Opentime between several records
Post Reply? | Posted by: RubyRed | Last post by RubyRed, 8 days ago
Basically, I am trying to calculate each minute of an employee scheduled time during their work shift. In the table below shows only the times that... more »
Violation of PRIMARY KEY constraint..how to solve this error?
3 Replies | Posted by: akmaRudiliyn | Last post by debasisdas, 8 days ago
Hai everybody :). I have problem and need help. ERROR: ERROR Violation of PRIMARY KEY constraint 'PK_Table1_01'. Cannot insert duplicate key in... more »

Top Microsoft SQL Server Contributors