Quantcast
Channel: Microsoft SQL Server
Viewing all 4871 articles
Browse latest View live

My database nerd power is insufficient

$
0
0

I got a job handling a small company's IT, but they want to offsite backup a 200GB SQL Server 2008 database and I'm a MCSA, not a DBA, so I want to make sure I'm not making any incorrect assumptions.

-Doing a backup from within SQL studio makes a 200GB backup file, which is way too big to send offsite nightly.
-Doing a Windows Server Backup with VSS does make smaller incremental backups, but can't be used with an online database without fear of getting a broken backup.

With those two assumptions in place, my plan is thus:

1: Offline the database by stopping the SQL service.
2: Backup the entire server with Windows Server Backup.
3: Restart the SQL service to bring the database back up.
4: Mirror the changes on the backup drive offsite.

It's a 9-5 office, so downtime for the database isn't an issue after hours.

Can anyone see any...


SSIS ForEach Moving Files

$
0
0
Well, I thought this was a great little tutorial.https://www.simple-talk.com/sql/ssis/ssis-basics-introducing-the-foreach-loop-container/

However, when it tries to move the files I get the error
Text
error: 0xC002F304 at File System Task, File System Task: An error occurred with the following error message: "The process cannot access the file because it is being used by another process 

There's no file opens on the file. I don't know what's going on.I've beaten my head into this ALL DAY. Any ideas?

Risks of using a shared SQL server in a hosted environment

$
0
0

The company I work for is looking into moving our financial databases to a hosted environment.  Among the many problem I see are that the financial databases will be on a shared SQL server, meaning that this server will also contain databases of 50 other hosted companies.  Additionally, the hosting provider will have admin rights to the server.  

I see this as a huge security risk but for some reason I cannot find any supporting documentation.  My Google Fu is weak today.  Can anyone point me in the right direction or am I overreacting?

Unable to connect to SQL server remotely

$
0
0

Hello, all. I am really hoping you can help me with this problem. I have a server running SQL server 2008 R2 that I am no longer able to connect to remotely. The DB is for the time clock software. I know the database is running correctly because I am able to log into it on the server directly. I need to be able to connect to it from remote computers as well, though. I have checked to make sure all of the services are running, and the database is set to allow remote connections. The whole problem started 2 days ago when the town had a power outage. I had replaced the switch with a larger one the day before, and have put the old one back in place to make sure it wasn't a management change I made/forgot about in the switch. I have plugged one of the laptops that needs to connect directly into the same switch the server connects into, and...

SQL backup script

$
0
0

I have been tasked with creating a script that will conduct daily DB backups, with a TLOG backup that occurs every hour. Also, I need to put in place a cleanup task that will keep jobs only for 2 days.I know little to nothing about SQL so any help would be much appreciated.

Suggestion required for a Database storage, VHDX or iSCSI LUN?

$
0
0

Dear community,

As I am mentioned in subject I am planning for Virtual Server for SQL Server 2014. Please suggest me the good practise in attaching storage for SQL Database storage location. Which will better to be create a storage location virtual hdd as VHDX or connected LUN directly to VM using iSCSI?

Here the VM is actually located in Hyperv cluster. Planning to use SAN for both VM and Database Storage.

Please advice. Thank you.

Shamz

Log Shipping and Encrypted Stored Procedures

$
0
0

I have a client with an application database on SQL 2012 Standard that they wanted replicated to another server.  I started to setup transactional replication but ran into an issue with there being 40 tables without a Primary Key and 50+ Stored Procedures that are Encrypted.

My question is would Log Shipping work?  Would the encrypted procedures be accessible on the standby server?  I haven't worked with Encryption to much .  I have a support request into the vendor to see what they support. 

Any news on the SQL Server?

$
0
0

he new SQL Server will be available on June 1. Here's a rundown: http://cdw.io/bb6yv3 Has anyone beta tested this? Got any extra info?




SQL Code for EOM and FOM Case statement.

$
0
0

I'm trying to add this case statement to my where clause to filter info based on a date. I want the query to target last month if todays date is the first and on the flip side it will use the first and last day of current month as date parameters.

SQL
wherelower(a.ord_shipped_flag)in('y','p')andCASEWHENCONVERT(VARCHAR(10),GETDATE(),112)=DATEADD(month,DATEDIFF(month,0,CONVERT(VARCHAR(10),GETDATE(),112)),0)THENCONVERT(CHAR(10),DATEADD(d,a.RDAT_SHIPPED+5843,0),112)BETWEENCONVERT(VARCHAR(10),DATEADD(m,DATEDIFF(m,0,GETDATE())-1,0),112)ANDCONVERT(VARCHAR(10),DATEADD(ms,-2,DATEADD(month,DATEDIFF(month,0,GETDATE()),0)),112)ELSECONVERT(CHAR(10),DATEADD(d,a.RDAT_SHIPPED+5843,0),112)BETWEENCONVERT(VARCHAR(10),DATEADD(month,DATEDIFF(month,0,GETDATE()),0),112)ANDCONVERT(VARCHAR(10),DATEADD(s,-1,...

Only show records with certain value SQL in Visual Basic

$
0
0

Hi There,

I'm trying show only records within a database on SQL that match a certain value. This is showing the support tickets from a certain computer name. I'm fairly a noob at visual basic but this is what I get at the moment. The table is populated when running but with everything rather than just the computer name that I want. Here is the code;

Text
 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'Ticket_SystemDataSet2.Tickets' table. You can move, or remove it, as needed. Me.TicketsTableAdapter2.Fill(Me.Ticket_SystemDataSet2.Tickets) Dim strComputerName As String strComputerName = My.Computer.Name Dim connection As New SqlConnection connection.ConnectionString = "Data Source=SERVER;Initial Catalog=Ticket System;Integrated Security=True;Connect...

SSMS 2016 - Install Issues

$
0
0

I have a SQL 2012 at a site and I need to get in with management. In the past with 2008 or 2012 I would have to re-run the initial installer, and then choose to "add features" and then choose Tools. Well, after a quick google for the download I came across SSMS 2016 - which is supposed to work with 2008-2016 versions, and is a standalone installer. Awesome!

Downloaded.https://msdn.microsoft.com/en-us/library/mt238290.aspx

Installing:


And then, I get this generic error.

Any ideas? The log file is a lot of gibberish - here is the tail end of it

Text
[1560:0F38][2016-06-02T08:23:10]i201: Planned package: sql_tools_loc_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None [1560:0F38][2016-06-02T08:23:10]i201: Planned package: sql_tools_loc_x86, state:...

SQL Server 2016 Phoning Home

SQL server has the servers RAM pegged - normal?

$
0
0

Hi guys ELSE gals, I am not an expert on the server stuff and need some advice / thoughts. Our SQL database keeps the RAM pegged at 97% (the CPU is at 6%.) The guy that has been taking care of the servers says this is normal.

My question is just simply if this is a true statement or not?

"MS SQL will always seize all available RAM so the server will always look like its RAM is pegged, no matter how much RAM you install"

If not, how do you throttle MS SQL RAM usage? Or can someone help me understand how MS SQL uses RAM?

IDON'Twant to go down the road of what hardware do you have, what are you trying to do, etc. This is a general question about SQL RAM usage... However, here are my hardware highlights AMD Opteron 2.20 / 2 processors, 8GB RAM, 64bit Server 2008 R2 standard running in a WMware box with currently no other VMs on the...

SQL Query to change a value in a table of a list of items.

$
0
0

Hello everyone,

I am in need of assistance with an SQL query long story short, I'm not a programmer, I can write basic queries to look something up in our database, but when it comes down to doing a mass update I am lost.

I have a list of assets which need to have their asset type changed, in this context, I am not 100% sure what is needed when asking this question so any help would be greatly appreciated.

Write SQL query in dll

$
0
0

Hello,

I am planning to use dll in SQL triggers. For that I need to use SqlContext.TriggerContext

, but I am new to this concept.

My requirement is simple, I have one SQL table named reg_key. In that I have sl_no and Name columns whenever data inserts or updates to those columns I want to get notified with column names and updated/inserted values.

How can I do this ?

C# or vb.net ok for me.

Please help me.


Upgrade SSRS from 2014 to 2016 causes web portal to fail in browser

$
0
0
Hi,

After testing an in-place upgrade on 2 different machines in our network running SQL 2014 Express with SSRS, I am having the same problem. Upgrade install has no errors and appears to succeed, but after trying to browse to the web portal (http://localhost/reports) I get the following error in the browser:

The service is not available.
The report server has encountered a configuration error.

Have tried running the browser as administrator, this is also being executed with a domain admin account.

Also the log files from SSRS folder are showing the following errors:

library!ReportServer_0-1!968!06/06/2016-11:22:33:: i INFO: Call to ListChildrenAction(/, False).

library!ReportServer_0-1!968!06/06/2016-11:22:34:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:...

SQL Server on Linux Preview

SQL Server Performance tuning and diagnsotic

$
0
0

My company has a couple applications running on an SQL 2008 R2 backend that has always been a bit of a dog. It does a lot of work and performance is an issue. Up till now. We just accepted the performance. Recently, I was asked to see if there was anything we could do. Being a sysadmin, my first inclination is to throw more hardware at it. More CPU, more memory. 

But, I want to make sure that the hardware we have is being correctly utilized first. Tuned to perfection. I know this is an art form. The system is pretty out of the box and the application vendor isn't into tweaking our server. 

I have run performance metrics. But, I am no DBA. Its pretty greek to me. Are there companies that we do this kind of tuning for you? Any quick and simple things to check? Where do I begin? 

SQL Server performance tuning and diagnostics

$
0
0

My company has a couple applications running on a SQL Server 2008 R2 back end that has always been a bit of a dog. It does a lot of work, and performance is an issue. Up till now we just accepted the performance. Recently, I was asked to see if there was anything we could do. Being a sysadmin, my first inclination is to throw more hardware at it — more CPU, more memory. But I want to make sure that the hardware we have is being correctly utilized first — tuned to perfection. I know this is an art. The system is pretty out-of-the-box and the application vendor isn't into tweaking our server. 

I have run performance metrics, but I'm no DBA. It's pretty Greek to me. Are there companies that do this kind of tuning for you? Any quick and simple things to check? Where do I begin? 

How to make software to work without installing SQL server

$
0
0

Hello,

If we develop some software in .Net), we don't install visual studio to any client. The client just have to have required .Net framework (1.0, 1.1, 2.0, 3.0 etc) installed and we are good to go.

Same way, if we are making an app in VC2008, he just needs to have Visual C++ 2008 runtime (available from MS site free, about 4-5Mb). So, basically, we just need runtime environment.

So, my question is if my software is using SQL Server 2008, what runtime (or anything else) will be required on client side for it to work?

How to make my software to work without installing SQL server on client side?

Please help me.

Viewing all 4871 articles
Browse latest View live


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