0 down vote
SQLServerCentral » Latest topics
Stored Procedure
Hi I have below Stored Procedure. I want [code language="sql"] USE [Test] SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO
CREATE PROCEDURE Sp_Test @fromDate
SQLServerCentral » Latest topics
Amount Value
Hi In SSRS report i have written query select(amount) from table1 and amount of value is greater than 10 digits. It shows #value. Amount with <= 9 digits is showing correctly. Thanks
RSSMix.com Mix ID 8239024
Comic for 2017.10.28
New Cyanide and Happiness Comic
SQLServerCentral » Latest topics
Find query execution count in certain time period
Hi, Is it possible to find a query execution count in certain time period? For example, a user executes "select *from emp where id=10" several times a day. Can I find how many times he executed the query i
SQLServerCentral » Latest topics
App timing out, but sproc runs in 3 seconds
System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expi
SQLServerCentral » Latest topics
SQL Server Query is taking high CPU
Hi All, I have 2 tables. Credit Account ,Credit Account relationship.
SQLServerCentral » Latest topics
Substring Question
Hi, I trying to extract the value from a field until a special character eg: firstname.lastname I only want firstname have the substring working well for the most part except when there is not Period in between it then return a blank (not
SQLServerCentral » Latest topics
sql SELECT Count(*) works on single words only
0 down vote
SQLServerCentral » Latest topics
Data Modelers - Alternatives to Erwin
I have been asked to find data modeling tools to serve as an alternative to Computer Associate's Erwin. I downloaded Toad version 3 to test it, but it doesn't allow me to import .er1 model diagrams.
Does anyone know of decent alternatives to Erwin whi
SQLServerCentral » Latest topics
StartDate and EndDate in same column
I have a date column below RunDate , I want to create two column StartDate and EndDate like this StartDate = '2004-08-01' EndDate = '2006-08-01' second row StartDate = '2006-08-02' EndDate = '2007-02-15 how do I do
SQLServerCentral » Latest topics
What is the interval between attempts to bring the cluster online
[Note] I posted a duplicate topic, updated this one to another question
Does anyone knows the interval between attempts to bring the cluster online? e.g. how long does it wait between attempts?
I set it to max 4 times in 6 hours, an
RSSMix.com Mix ID 8239024
Comic for 2017.10.27
New Cyanide and Happiness Comic
SQLServerCentral » Latest topics
Delete records using Minus command in sql
I have two tables and I want to delete records from one table for which there is no matching records in second table. Now the question is How to delete records
SQLServerCentral » Latest topics
Physical or Virtual Storage
SQLServerCentral » Latest topics
StartDate and EndDate in same column
I have a date column below RunDate , I want to create two column StartDate and EndDate like this StartDate = '2004-08-01' EndDate = '2006-08-01' second row StartDate = '2006-08-02' EndDate = '2007-02-15 how do I do
SQLServerCentral » Latest topics
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 charge of something who was asking how to take a database backup and restore it on another server.
It seems like the general feeling of a lot
SQLServerCentral » Latest topics
How to get percent of subtotal
Please see attached example. I'm trying to get the percent of subtotal onto my report. I've attached a screenshot of SSRS in design view and sample results.
SQLServerCentral » Latest topics
SSRS: Addind a parameter to the dataset query
Dear all,
I have created in my dataset a parameter named @pDB and I have build the query below in the dataset:
[code language="sql"] SELECT &nbs
SQLServerCentral » Latest topics
Trying to speed up this 'GetWorkingDays' function.
I'm trying to redesign one of our working days functions. The idea is to calculate weekends (easy enough) but holidays are trickier. The current idea is to simply embed the hard coded date values in a table expression
SQLServerCentral » Latest topics
SQL versus program
Hi all,
I'm posting my question in this 2008 forum because we're running SQLServer 2008R2, but it is more a general question about SQL vs programs (in Java for me).
To briefly explain, over the years I wrote lots of queries in SP, VW and
SQLServerCentral » Latest topics
SQLServerCentral » Latest topics
SQL Server Query is taking high CPU
Hi All, I have 2 tables. Credit Account ,Credit Account relationship.
SQLServerCentral » Latest topics
How to set remote location for File table directory in SQL server 2016?
Hi All,
I need a help. I want to change File table directory with different location(Remote location) on the file stream server. How to set in using script (or) through properties window.
Thanks Rajan
SQLServerCentral » Latest topics
Bulk load architecture
Hello SQL Guys, I am working on a project where in a file location I will be getting daily files like marketing_input_1.txt, marketing_input_2.txt etc and sales_input_1.txt, sales_input_2.txt etc. The number of files can vary and that is shown as the
SQLServerCentral » Latest topics
Building an Incremental Load Package – Level 3
SQLServerCentral.com Articles
Discover database DevOps and more at PASS Summit
PASS Summit lands in Seattle from October 31 to November 3 this year, bringing with it the latest thinking and developments in the SQL Server world. This blog post from Annabel Bradford gives the details of what Redgate willl be presenting on, when this year's Redgate Rocks party will be, and how you can get involved with the team!
SQLServerCentral » Latest topics
Fun with Dates
Comments posted to this topic are about the item [B] Fun with Dates[/B]
SQLServerCentral » Latest topics
Parameter Sniffing In Action
SQLServerCentral » Latest topics
App timing out, but sproc runs in 3 seconds
System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expi
SQLServerCentral » Latest topics
Update 600,000 rows in table
Hi
I need to update 600,000 rows in the table column with files from the file system. I see there are articles online how to update large number of rows in batches. How do I loop through SQL query and update in batches? I don't see any examples. Could yo
SQLServerCentral » Latest topics
Transport error encountered when SOME queries run with batch terminator. Behaviour changes depending on text of query. WEIRD!
This is one of the weirdest issues I've ever seen. It's so unbelievable that I actually made a video to demonstrate the problem. Briefly, here's what happens:
I submit a query (create view) without including the SSMS batch terminator ("go"). The
SQLServerCentral » Latest topics
web configuration of Master Data Services SQL Server 2016
I installed Master Data Services (SQL Server 2016 Developer SP1) on a Windows 10 Enterprise machine. Using Master Data Services Configuration Manager, I did the following: For the create database I entered computername\username, was successful (I used a l
SQLServerCentral » Latest topics
Reproduce-able : Could not continue scan with NOLOCK due to data movement.
Hello SQL Server Community, Today I ran into an issue with an error I have never seen before. The error is "Could not continue scan with NOLOCK due to data movement." I googled the error and all the articles I read talk about possible data c
SQLServerCentral » Latest topics
how to take backup databaseobjects(tables scripts,storeprocedure and functions etc) in sqlserver using sql scripts
Hi All, I have one doubt in sql server . how to take Script database objects automaticaly using sql script and keep into specificfoleder(c:\backup\)
Create monthly tables structure( create without data),views,procedures
SQLServerCentral » Latest topics
Send mail from stored procedure
I have a stored procedure that is used for a report. I am being asked to have an email go to one person every Monday. I wrote a stored procedure that I will run as a job in SQL Server Agent.
I am getting the following error when
SQLServerCentral » Latest topics
Need you help on to find wait type
Hello All, Need your help on TSQL Script to find which wait type is running currently on the SQL server DB instance.
Thanks in advance!!
Best Regards, DBA
SQLServerCentral » Latest topics
Encrypt Incoming Connection from ColdFusion
Hello, My web developer is trying to encrypt her ColdFusion connection coming into my database server. We do not have "force encryption" turned on. So far, she has been unable to get the connection to work and cannot find any help to assi
SQLServerCentral » Latest topics
database for .net application
We have a situation like below:
we have a .net application for students that used the SQL server database as backend, I will call it App1. The database have some tables for the application and also import a lot of tables from our main
SQLServerCentral » Latest topics
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 charge of something who was asking how to take a database backup and restore it on another server.
It seems like the general feeling of a lot
SQLServerCentral » Latest topics
Where query time between 6am and 6pm
I am trying to modify my query so that it will only look at the data between 6am and 6pm instead of the whole 24 hours, I have tried a few things but have had no luck
Here is my current query
SQLServerCentral » Latest topics
Update 600,000 rows in table
Hi
I need to update 600,000 rows in the table column with files from the file system. I see there are articles online how to update large number of rows in batches. How do I loop through SQL query and update in batches? I don't see any examples. Could yo
SQLServerCentral » Latest topics
Getting started with Powershell
Hi all I'm just getting started with PowerShell and following the series by Ben Miller here. I'm trying to do things properly and learn rather
SQLServerCentral » Latest topics
dbcc freeproccache for Single stored procedure
Hi Team,
please provide the query to clear the cache of single stored procedure.
THanks Bhanu
SQLServerCentral » Latest topics
Team Foundation Server with Git strips out connection Manager for SSIS Packages
Hi there
We are using Git on Team Foundation Server for Visual Studio 2015 Community Edition. I am able to create a branch in TFS, make changes to a SSIS package in a Visual Studio solution project. The SSIS package has connection Ma
SQLServerCentral » Latest topics
Need help in improving performance of a stored proc which invokes multiple scalar functions on the resultset
I have stored proc which fetches a lot of data and the performance is really bad.
The problem is that this SP extensively uses Scalar functions (which does a complex calculation using while loop). The scalar function is called on the resultse
SQLServerCentral » Latest topics
Data integration between MYSQL and SQL Server - encrypted data
Hi, I need to integrate data (ETL for a DW) from MySQL (network a) into SQL Server (network b). This is no problem in itself. The problem I need to solve is that PII data coming over the wires needs to be encrypted. This is going
SQLServerCentral » Latest topics
SSMS 17.x and missing Utility Explorer
So we have a SQL 2014 instance set up on our monitoring server to run UCP. Up until now we viewed the UCP dashboards, etc, through Utility Explorer in SSMS for 2014.
Now we have installed SSMS 17.3 on our monitoring server to manage the new Sql 2
SQLServerCentral » Latest topics
Design considerations for a tabular model
I have a star schema already in existence (SQL Server fact table and numerous dimension tables). For a given tabular model I have used that as the basis of my design, grabbing a subset of the tables (the fact plus a few dimensions) and within those tables
SQLServerCentral.com Articles
Free eBook: Understanding SQL Server Concurrency
When you can’t get to your data because another application has it locked, a thorough knowledge of SQL Server concurrency will give you the confidence to decide what to do.
SQLServerCentral » Latest topics
Reading XML data from SQL Table
Hi Experts,
I have loaded an XML file which is 750MB in size, its created as a BLOB. Following is an output of the XML files and I do not know how to read this into SQL table. The main confusion is how to read the nodes. I have used SSIS to
SQLServerCentral » Latest topics
Compare 2 rows using tsql code
Hi All,
A questions which is there with me a long long time. Comparing 2 rows in a table. How can I compare 2 rows in a table and pin-point and say so and so specific column value don't match. In my below example, i want to compare 2 r
SQLServerCentral » Latest topics
Tell the Judge You Have No Backup
SQLServerCentral » Latest topics
Http://DumpsTrack.Com Shop Sell Dumps High Balance/Dumps Track 1+2/ATM UK-AU-EU-RU-USA-Taiwan... >>>>>>>>>>>>>>> WELCOME TO MY SHOP <<<<<<<<<<<<<<<< https://www.youtube.com/watch?v=DjSvRWGRygU +++++ Hi all New customer +++++ -Are you realize dream enrichment by working make...
Http://DumpsTrack.Com Shop Sell Dumps High Balance/Dumps Track 1+2/ATM UK-AU-EU-RU-USA-Taiwan... >>>>>>>>>>>>>>> WELCOME TO MY SHOP <<<<<<<<
SQLServerCentral » Latest topics
create table in mutiple schemas
hi,
i need to create single table in nearly 50 schemas. can anyone provide automation script for this
SQLServerCentral » Latest topics
database for .net application
We have a situation like below:
we have a .net application for students that used the SQL server database as backend, I will call it App1. The database have some tables for the application and also import a lot of tables from our main
SQLServerCentral » Latest topics
Execute Process Task: How SSIS loads executable files at runtime
Please help me understand how SSIS loads executable files at runtime. Does it copy the file to RAM at runtime to run it? I'd like to know if many jobs running on th same schedule, running the same executable file, will potentially lock resources to this f
SQLServerCentral » Latest topics
Parameter Sniffing In Action
SQLServerCentral » Latest topics
Trying to speed up this 'GetWorkingDays' function.
I'm trying to redesign one of our working days functions. The idea is to calculate weekends (easy enough) but holidays are trickier. The current idea is to simply embed the hard coded date values in a table expression
SQLServerCentral » Latest topics
Reading XML data from SQL Table
Hi Experts,
I have loaded an XML file which is 750MB in size, its created as a BLOB. Following is an output of the XML files and I do not know how to read this into SQL table. The main confusion is how to read the nodes. I have used SSIS to
SQLServerCentral » Latest topics
case when LIKE on columns from 2 different tables
hello, need some help with the follow. problem: A.CITY contains a single city per row (i.e. TORONTO), B.CITY contains multiple cities per row (i.e. TORONTO, TOKYO ) my statement below returns 0, when i want
SQLServerCentral » Latest topics
Join on a Substring
I have a proc that runs nightly that moves data into another table. The procedure joins on multiple tables one of the joins involves two columns in tables that have id numbers. I have no control of the source of these table
SQLServerCentral » Latest topics
Postgres SQL in SSIS Execute SQL Task
Has anyone had any experience working with Postgres SQL in SSIS, specifically Amazon Redshift? I'm able to create an ODBC connection and execute very basic code against a Redshift database - for example, this works -
CREATE TABLE IF N
SQLServerCentral » Latest topics
How Long Before Your Database Runs Out of Space?
SQLServerCentral » Latest topics
Out of memory exception
If I run DBCC MEMORYSTATUS, it fails to finish and throws this error.
An error occurred while executing batch. Error message is: Exception of type 'System.OutOfMemoryException' was thrown.
The SQL Server is running this version of SQL
SQLServerCentral » Latest topics
Execute Process Task: How SSIS loads executable files at runtime
Please help me understand how SSIS loads executable files at runtime. Does it copy the file to RAM at runtime to run it? I'd like to know if many jobs running on th same schedule, running the same executable file, will potentially lock resources to this f
SQLServerCentral » Latest topics
SQLServerCentral » Latest topics
Nested insert statements problem
Hello all. fairly new to SQL. but not that new. I have 3 stored procedures. The first one has a statement like "Insert into #TblZBKSP Exec m2maux01..sp_calcbookandshipreportreva @DateRangeFrom" The second also has an insert statement from the
SQLServerCentral » Latest topics
Transaction Processing When Calling Sub Stored Procedures
Hi,
I have come across an interesting scenario, but am not sure what the outcome would be.
If have a stored procedure in the form of:
[code language="sql"]ALTER PROCEDURE [db
RSSMix.com Mix ID 8239024
Comic for 2017.10.25
New Cyanide and Happiness Comic
SQLServerCentral » Latest topics
Need help in improving performance of a stored proc which invokes multiple scalar functions on the resultset
I have stored proc which fetches a lot of data and the performance is really bad.
The problem is that this SP extensively uses Scalar functions (which does a complex calculation using while loop). The scalar function is called on the resultse
SQLServerCentral » Latest topics
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 charge of something who was asking how to take a database backup and restore it on another server.
It seems like the general feeling of a lot
SQLServerCentral » Latest topics
Query taking long time
Hi,
The below query is taking around 1000 Seconds. SELECT ar.MOVE_QTY,ar.DM12,ar.AL_OR,ar.OR_CODE,ar.CAI_CODE,ar.CAI_DESCRIPTION,ar.CST_CODE,ar.AL_NO AL_NO,ar.OPEN_QTY,ar.WH_CODE,ar.ETA_DATE, ar.CATEGORY,ar.AL_DATE,ar.OD_CODE, ar.SHIP
SQLServerCentral.com Articles
Key Lookups and ColumnStore Indexes
Erik figures out why SQL Server really doesn't like combining these two things in a query plan.
SQLServerCentral » Latest topics
How to only select 11pm to 7am in DateTime (many months of data) DDM&DDL included :)
Looking to run a report for a few years but only between 11pm and 7am.
[code language="sql"]CREATE TABLE mytable( i_ticket_id INTEGER NOT NULL PRIMARY KEY ,c_grand_total MONEY(6,2)
SQLServerCentral » Latest topics
Could not delete from specified MS access tables from SSIS execute task
I am working in migration project to upgrade current sql server 2008 SSIS jobs into new SQL server 2014 in windows 2012 server. One of my SSIS job step using MS Access 2010 (.mdb) tables in SQL Execute Task which deletes all th
SQLServerCentral » Latest topics
SSIS : "The value could not be converted because of a potential loss of data.".
Dear all, I have a data conversion task and I am getting the following error message: while c
SQLServerCentral » Latest topics
Set up job to convert word document to pdf with script task
SQLServerCentral » Latest topics
How to only select 11pm to 7am in DateTime (many months of data) DDM&DDL included :)
Looking to run a report for a few years but only between 11pm and 7am.
[code language="sql"]CREATE TABLE mytable( i_ticket_id INTEGER NOT NULL PRIMARY KEY ,c_grand_total MONEY(6,2)
SQLServerCentral » Latest topics
Best DB advice - very basic and general
Hello to everyone,
I rsearched in this forum but could not find pertinent advice... which is the best DB for our needs?
I am a very IT challenged (ignorant) partner who has been tasked with the responsibility to chose and create a DB for
|
|