|
Here's a few of the new posts today on the forums. To see more, visit the forums.
Error while converting varchar to numeric
- Below is the query which is giving the error:---
SELECT [Working ISIN], convert(decimal(18,3),[Split Old Paidup]) as [Split Old Paidup]
, convert(decimal(18,3),[Split New...
Server patch testing
- I am a QA for package testing. In our lab we also test the Microsoft patches on the test PCs...
How does SQL Server authenticate windows login ?
- Hello,
How does SQL Server authenticate windows login ? I got the following from Microsoft website.
"When a user connects through a Windows...
Communications to SQL server "freeze", then resume.
- I am looking to see if anyone else has a few ideas of where to start in looking for problems...
Question on ACID properties
- Experts,
One of the interviewer asked me something like below question. It was not clear to me anyway.
"When we get an...
Reg: Not Connecting Named Instance through Public IP
- Hi
In my production server i installed sqlserver 2005 in default instance and one more named instance also .In this...
Unable to increase initial file size in SQL2000
- I need some help on resize a ndf file in SQL2000. Some of our databases have reached over 1TB. I've...
SQL Agent Job History Retention Issue
- I have seen strange issue pertaining to Retention of Job history on one of the production server.
1. Job is SQL...
Change Database Status from Shutdown to Normal
- HI,
We have a database that the status is set to Shutdown. How can I change the DB Status to Normal.
Thanks,
process
- Hi All,
in my solution we need to process weekly sasles cube through a ssis package.
for this purpose there is a...
SSIS Package Fails
- Hi All,
The SSIS Package Fails saying
"The AcquireConnection method call to the connection manager "Excel_Source" failed with error code 0xC0202009"
Here...
Hide multiple Columns based on Parameter value in SSRS 2004
- Can anybody tell me how to hide/show multiple columns based on multivalued parameter.
ex :i have two parameters
1)item
2)option(multivalued - ven,itm,qty)...
How can i drop table?
-
Dear all,
I have an error in my database. I write command that is
'Drop table tb_name'.
When i run that command,...
TRY CATCH 2005: SSMS still sees error (2012 does not)
- Here's an interesting little thing I've found - SQL 2005, when given two errors, CATCHes one and lets the other pass...
SQL Server Tools - Recomendations On Stress Testing and I/O Testing On New SQL Server
- Need to test/stress a new SQL Server box to see what she can do. I went to get a copy...
Data Migration Options
- We have SQL Server databases located on different servers for our hosted web application.
Each database can house multiple 'customers' along...
rounding up to the next whole number
- I'm trying to round a number up to the next whole number in sql server 2005 query analyzer.
i.e. 12.2 needs...
ODBC-connection to sublist failed
- I used the Access upsize wizard to split my database. I still wish to use the Access for the frontend...
Problem with Dynamic Column Mapping
- I am working on a Data Flow Task within an SSIS package. I've created three OLE DB connections, one source...
SSIS package fails only as job
- I have a package that runs fine in development. But when I run it in a job, I get this...
String Literal in the expression exceeds the maximum allowed length of 4000 characters.
- Hi All,
I need a small help. In my ssis package, huge SQL statement is constructed through expressions
Problem:
SQL is exceeding more...
Save mail files(.msg) from Mail Server using SSIS 2005
- Hi Guys,
I am working on SSIS packge where I want to save mail files(.msg) coming from Mail Server along...
Save Outlook mail file (.msg) using SSIS 2005
- Hi Guys,
I am working on SSIS packge where I want to store Outlook mail file(.msg) along with attachment using...
deployment of the package
- hi
i am building my package ,but after that itdoesnt not show under MSDB folder.
Any help?
send email
- hi
i need to give mail ,that if number of file deleted is 5.
the message should be 5 file...
SSIS - FTP TASK - DYNAMIC FILENAME
- Sorry guys, I'm really new to this. Can somebody tell me the easiest way to use the FTP task with...
Update using Max() value on multi join query
- Hi,
I have a problem where I need to update a table (Results). The one thing I can't get my head...
Minimum Value 3 Fields > 0
- This seems like it should be easy but I can't seem to come up with a simple formula. Need the...
Problem with BULK INSERT
- I'm trying to use the BULK INSERT statement to populate some table from a TXT file.
In the TXT file field...
Filling Buckets
- A customer had reported an issue with one of our stored procedures so I took a look and found that...
Maintenance Cleanup Task can't delete trc files
- Hi,
I've created a maintenance plan with a Maintenance Cleanup Task as a subplan.
In this Maintenance Cleanup Task :
I...
column to calculate the balance stock dynamically
- I have a table as shown below and would like to have the balance quantity which should be dynamically calucalted...
Compare two databases
- I need to compare two databases (e.g. Development DB and Test DB) to make sure they are 100% identical. Is...
Stored procedure performance improvement
- Hi All
I have DB with 4 million records and a stored procedure which clears all the data from bunch of...
Date Range in my SQL report
- I am new to creating reports and I have a few that I need to have a date range.
Example: I...
Requeired Date format : 13 Sep, 2012
- Hi,
am using below statement in a select statement,
" e.expiration_date" is a date fromat column,
i want the date should be...
Effect of adding update statistics as part of the stored procedure
- Hi,
What are the negative effects of running update statistics on few tables as part of stored procedure that has application...
Updateable Function Based SQL Index
- Hi,
How do I create an updateable index from these index definitions:
CREATE INDEX LibSort ON dbo.Page
(
REPLICATE('0', 5-len(dbo.Page.system_id)) + ltrim(dbo.Page.system_id)+'~'+
REPLICATE('0', 40-len(dbo.Page.Page_Type)) + ltrim(dbo.Page.Page_Type)+'~'+
REPLICATE('0',...
The last row in the sample data is incomplete. The column or row delimiter is missing or the text is qualified incorrectly.
- I have a requirement of loading 2 CSV files from shared location into a SQL table.
All 2 CSV files are...
Displaying Estimated Execution Plan for a Stored Procedure
- [font="Tahoma"]
Hi Friends,
I am in the process of fine tuning a stored procedure and hence I am trying to view the...
linked database opinion?
- What is your opinion of linked databases? I've used both linked servers and linked databases in the past. I seem...
ILM 2007 to FIM 2010 database migration
- I have a 10gb ILM 2007 database, (6gb data, 4gb log) in production. The developers are telling me when then...
Update Column from Another Column - Plz check attachment
- Hello Experts,
I have a table with a column called [b][i]Z_Status[/i][/b]: the values of this column are DUP and Survivor, which...
UniqueIdentifier as a Primary Key
- Is it ever considered a best practice to use a UniqueIdentifier(GUID) as a primary key?
Is there ever a case where...
Understandig row length calculation for sparse columns
- Hello,
I hope someone can explain the internals for row length.
We have a 3rd party vendor table with following definition: 7...
Using ROW_COUNT
- Hi Below is the code for my stored procedure
Alter proc [dbo].[InvoiceDisplayTest] (@InvoiceNumber nvarchar(50),@InvoiceDate datetime ,@InvoiceDate1 datetime, @AccountNumber nvarchar(50),@TradingPartnerID nvarchar(50),@Page nvarchar(50),@rownum...
SQL to create Timeslot Table between StartTime and Endtime of a day
- Hi,
Need help in dynamically creating a Timeslot table based on office hour StartTime and EndTime((like 2.30pm-4.30pm, timeslots hv to be...
Puzzle : Generating two unique numbers from an array of numbers (repetation not allowed)
- Hi All,
(This is just for fun, so you may choose to ignore this topic.)
Today I read a puzzle somewhere which...
SQL Replication - Can this be accomplished through Replication?
- Hi
I would like to know what replication model I should use to achieve the following if even achievable. This is...
Concatenate Rows
- I am trying concatenate an instruction field for multiple rows. Once I get the result set I will then insert...
error handling
- Hello,
Can some one help me with a way that I can stop scripts from running if one of the scripts...
Where To Put the MCTS Logo on Resume?
- Hi all;
I just passed the MCTS exam 70-432 with 833 marks, I just want to Know that may I use...
Bulk Insert with delimiter þ failing
- Hi
The bulk insert failing for the fieldterminator 'p' and i am getting the following error message. The statement working...
CONCATINATE 3 COLUMNS (int) INTO A WORKABLE DATE FORMAT
- Hi
I have been given a new system to work on and the dates are held in three seperate columns...
Data Comparison
- I have a table that contains permissions based on a group id. How would I go about building a script...
Need Help In Query .
- Could you please help me find records described as per below scenario.
Campus
code,address,CampusID(PK)
Data:-
DEL,ABC,1
CHN,DDJ,2
MUM,PQR,3
BNG,WRT,4
PUN,BNM,5
Enroll
StudId,CampusID,EnrollDate,LstAttendDate,Enrolid(PK)
1,2,15-06-2012,NULL,1001
1,5,31-05-2011,31-05-201,1002
ChangeStatus
StudId,Enrolid,NewStatId,PrevStatId,ChangeID(PK)
1,1001,1,0,5001
1,1001,2,1,5002
1
NOT IN query very expensive, 100% CPU
- Hello all. Hopefully someone will be able to help me out with this query.
The below query takes 42 minutes, returns...
ALTER COLUMN fails when changing datatype of PRIMARY KEY
- I am currently working on a transaction table that has an IDENTITY column of type INT, which also has a...
T-SQL Help Needed
- CREATE TABLE Issue
(
id int not null identity(1,1) primary key,
name varchar(10)
)
CREATE TABLE Jrn
(
id int not null identity(1,1) Primary Key,
issue_id int,
created_dt datetime
)
ALTER...
Order by with case
- Hi All
I want to sort some table data using column index
The following query works:
[code="sql"]
declare @index varchar(10) = 4
select CityInternalID, CityDefaultName, CityCountryID...
rCTE vs LIKE for Hierarchy
- Hi people,
I'm tunning a database and i've stumbled by some hierarchy queries, on the good old form of ID,...
Compile SQL Reference Table query into VS 2010
- I am completely new to SQL server i know a few of the basics. I have a VS2010 asp.net c#...
Bulk insert of large files (more then 450MB)
- Hi everyone
I have to populate a table with a pretty large text file and I'm happily using the very good...
How do I fix Damaged allocation pages
- I get this result from dbcc checktable
DBCC results for 'RELATED_PARTY'.
Msg 8946, Level 16, State 3, Line 1
Table error: Allocation page...
Logshipping is not working.
- Hi,
We have a log-shipping set up on the production server for reporting purpose.
Unknowingly, I have set up a backup strategy...
Trying to get data into one view
- Hello,
I have already posted this before, but gave too less info.
I am trying to get a total of unique usernames...
Using Access to put data into SQL Server
- Hello everyone. So I have a database in SQL Server 2008 that contains 5 tables. I have connected Microsoft Access...
Cubes without A Data Warehouse?
- Greetz!
I'm new to the BI space and have been asked to look into using cubes without building a datawarehouse or...
Standard Edition Auditing
-
Hello All,
We all know that in SQL Server standard edition we cannot do any auditing on Server and DB...
Pros and cons of having multiple instances on a Active Passive and Active\Active cluster
- Hi guys,
I have a sql 2008 r2 enterprise box which is running on windows 2008 R2 enterprise and the business...
Tlog backup on princple server?
- Hi,
one of the production server TLog backup taken every 30 minutes. the same server going to implement HA for database...
Deadlock issue due to locking on resources
- In our production environment, we are seeing frequest deadlocks due to locks on the resources. I have attached DeadlockGraphs captured...
New Windows 2008 R2 server with SQL 2008 R2 - Hard Drive Setup
- Okay I my be a little out of my league here, but I am learning. Please bear with me. Sorry...
SQL Query Confusion
- Hi All
I'm really confused about something, any help would be great
If I run a query and according to the execution...
page writes/sec high on mirrored server
- Hello
I have a mirrored server in which the SQLServer:Buffer Manager: 'page writes/sec' is high, it averages around 280 with the...
Some linked server connections stop working
- I have a 2008R2 Standard instance (2008R2 SP1 10.50.2500) which has developed strange problems with linked server connections.
All of...
Finding port numbers
- Hi,
can any one tell me the script for finding the port number of sqlserver
Powershell for network path
- I am totally new to powershell(just 2 days) so please bear my ignorance.Here is the code I am trying to...
Crazy Interviews
- Reading the topic 'Stupid Interviewer Tricks' reminded me of an interview where I couldn't tell if I was crazy or...
Fantasy football 2012
- Only 2.5 short months to football, can you believe it? I'm not ready, hardly feels like it's summer time yet.
You...
Today's Random Word!
- HI
When you woke up today, or logged-onto Opera Forums, you may have had a dream, a thought, a scene...
Are the posted questions getting worse?
- Is it me, or are the posted questions getting worse these days?
I just read a post by someone apparently in...
Query to get list of susbscriptions with params and values
- I've be searching and trying for hours to get a query that gives me all current subscriptions from and SSRS...
Configuring report manger Url on Local server asks Username and password
- Hi friends,
I am trying to Configuring report manger URL on Local server asks Username and password .I went to...
The last row in the sample data is incomplete. The column or row delimiter is missing or the text is qualified incorrectly.
- I have a requirement of loading 2 CSV files from shared location into a SQL table.
All 2 CSV files are...
Need Help --Data flow script transformation component / T-SQL / CLR Function ????
- Hi,
I need a help in SSIS to choose Data flow script transformation component / T-SQL / CLR Function to solve below problem.
I...
Consolidate or Decompose
- I have an opinion question. I have a sort of round-robin sets of pulls and updates. I'm wondering viewpoints on...
First Time Migration of a File System 2008 SSIS package from Dev to Prod
- Hi All,
I developed SSIS packages in our development server. I used my windows id in the development. The packages are...
Integration Services contain Analysis Services Processing Task. Fails but works in Analysis Services
- The dimensions have processed Successfully prior to the updating of the SEN Cubes
The attribute key cannot be found when processing:...
The CHILDREN function expects a member expression
- Hi, using SSAS 2005
I have a fully functioning cube with many measure groups and dimensions all bar one of...
SQL Server nvarchar(max) fields are truncated
- My Access 2003 (or 2007) has linked tables to SQL Server 2008 (I'm using SQL Native Client 10). Forms, reports...
Trigger defined for Insert, Update
- Is there an "easy/quick" way to determine inside the trigger itself whether it is being fired because of an Insert...
SQL Compare 10
- Working with SQL Compare 10 to build upgrade scripts we have found that SQL Compare will map columns of different...
|