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

SQL Coding

$
0
0

How long will it take on average to learn how to code in SQL to troubleshoot an SQL database (SQL Server)?  

I took an SQL programming class in college but that is the only experience I have with it.  


SQL database fix

$
0
0

We have a legal program that uses SQL express 2005. Somehow the company is saying our database has become corrupted and needs to be sent to a company to be rebuilt or fixed. The database sits on an external hard drive. We had to reload windows on the machine that it sits on. when we tried to reattach the database afterwards, we couldn't. Is there a cheap or software out there that I can use to fix it? 

Finding DB Consultant

$
0
0

I would really like to propose to my higher ups to hire a db consultant to take a look at our SQL db for Solarwinds. We keep getting corruption that is affecting our daily use of the program and we REALLY use it.

The person who kinda sorta knew about Solarwinds, but wasn't a db person, just left the company and we haven't hired the replacement. I'm wondering if I can talk the company into hiring a consultant to ferret out this corruption and harden up everything. 

The issue is how do I find someone? I would imagine I'd need to go with a company, not a local person as we are in a very rural area. Suggestions?

Scheduled data transfer from MS Access to SQL Server

$
0
0

Does anyone know of a solution that can transfer data from MS Access to SQL Server? We have an reporting application that uses SQL Server (2005) for the back-end. but the team using that application prefers to enter data into MS Access because it has a "nicer interface" than the application. As a result, they can't use this application for reports because they don't have any recent data in it.

Right now, we are thinking of writing a custom app in C# and running it on a schedule using Windows. But I was wondering if there is a solution out there that has the capability to do this. It is worth noting that right now, only data from one table in MS Access needs to be transferred. But some of the values in that table need to be transformed (for example, text to integer for ID) before dumping the data into SQL Server.

I've used SymmetricDS...

Can't get SQL 2008 R2 maintenance task to delete old backups

$
0
0

I have created a maintenance task to clean up old database backups:

Which is great, except that it doesn't clean them up. They never get deleted and then the disk fills up and the backups fail.  I thought maybe it was a folder access problem but the folder specified is a UNC path and it's the same folder that the backup task writes to so a file access problem doesn't seem like the likely cause. 

I have tried checking the box that says "Include First Level Subfolders" as well.

Any thoughts on how to troubleshoot? 

Thanks,

Paul

Help with logic for SQL

$
0
0

Okay so I'm trying to find a way to look at all sales lines and find any sales headers that don't have a specific item on any of it's lines .

So Sales line and sales header are joined and you need to report all sales headers that didn't order apples. However each order has 100 lines and not all lines are apples.

SQL
SELECT[SalesHeader].[No_]FROM[SalesHeader]LEFTOUTERJOIN[SalesLine]ON[SalesHeader].[No_]=[SalesLine].[DocNo_]WHERE[SalesLine].[Item]APPLE

The issue is since the other 99 lines aren't apples it returns every order number... I tried running a sub query like.

SQL
SELECT[SalesHeader].[No_]FROM[SalesHeader]LEFTOUTERJOIN[SalesLine]ON[SalesHeader].[No_]=[SalesLine].[DocNo_]WHERESOME(SELECT[SalesHeader].[No_]WHERE[SalesLine].[Item]APPLE)

But same issue, I'm pretty sure it's easier than I'm...

Permissions to Save SSIS Package to SQL Server

$
0
0

I'm going through SQL Enterprise Manager on my SQL2012 server to import data. I'm choosing the option to save the SSIS package, and I keep getting this error...

Text
TITLE: SQL Server Import and Export Wizard ------------------------------ The operation could not be completed. ------------------------------ ADDITIONAL INFORMATION: The ExistsOnSQLServer method has encountered OLE DB error code 0x80040E09 (The EXECUTE permission was denied on the object 'sp_ssis_checkexists', database 'msdb', schema 'dbo'.). The SQL statement issued has failed. 

What account needs permission where to save this? I've read instructions to go through Component Services... I've seen the account I'm running needs the following roles on the msdb DB

db_dtsadmin

db_dtsltduser

db_dtsoperator

I've also read that it is these roles...

db_ssisadmin

db_ssisltduser

...

Error adding second node to 2 node sql cluster

$
0
0

I installed the 1st server using the new sql server failover cluster installation option, went to add node on 2nd server and i get number of cluster node supported for edition failed.

the previous IT guy had sql 2012 express running on the server2, but I uninstalled it before trying to add node

both servers running server 2012r2 and the sql version is 2014 standard


SQL 2012 transaction log grows but not DB size

$
0
0

Good Day,

We are experiencing an issue where one of our SQL 2012 database transaction logs is growing at an alarming rate (over 1TB in less than 18 hours) while the database has not grown any.

Is there a way to determine what is causing the transaction log to grow? Whether it is a stored procedure or used defined procedure that is causing the issue?

Thanks,

David Brockstedt

Error in SQL backup with checksum

$
0
0

Hello,

I am using SQL express 2008 r2. Some times while running SQL backup query,

Text
BACKUP DATABASE [DBName] TO disk = 'TargetPath' WITH CHECKSUM

I am getting the error 'detected an error on page'. But if I run query without checksum then it runs successfully.

My question is,

1. Why that error is coming ?

2. What should I do if that error comes ?

3. Can I rely on the backup without checksum ?

Please help me.

De-register SPNs of SQL/SCCM2012r2

$
0
0

Hi All,

I am uninstalled SCCM 2012r2 because I didn't extend the schema and I wanted a nice fresh installation with all pre-reqs met. I install Full Version of MS SQL 2008 and SP4. When I go to install SCCM I am seeing all types log errors related to SQL. When I look at the logs for SQL I see the following error:

The SQL Server Network Interface library could not deregister the SPN for the SQL Server service. Error: 0x6d3, state: 4. Administrator should deregister this SPN manually to avoid client authentication issues.

Question: How do I de register the SPNs that I create in my previous install of SCCM 2012 r2? Thanks.

Learning SQL Server 2014

$
0
0

I have no real experience with SQL server and need to manage our client database that runs SQL Server. 

Once in a while, I may be given a list of contacts in Excel or text file format where I need to match them up with our existing contacts using their full name or email address

Using the SSMS client application, how much SQL coding would I need to know how to do this?

Anyone have any free tutorials online that  you recommend?  

Delete orphan records SQL Server 2008 R2

$
0
0

I have a situation where there is a routing file and an instruction file.  There is a one to many relationship between them. the two files I'll are related by an item_no and a seq_no.

A programmer deleted certain records out of the routing file without first checking and deleting the related routing instructions first.  

Can anyone offer a snippet of code that would help me identify and delete the orphan records in the instruction file? 

I have done deletes to a file based on the related record being "in" a subquery result, but what is throwing me is the two-key relationship between the files. 

Thanks,

Paul

Kaspersky Kaspersky KSC version 10 and MS SQL - DB size limit reached

$
0
0

We have been running Kaspersky for around 3 years and have roughly 250 items in our security center database.  We recently upgraded our KSC version and now cannot login due to the size limitation on MS SQL 2008 R2 Express.  We were told when we first installed Kaspersky not to worry as they had clients with 5000 computers and were using SQL Express.  Well we are now down because our database is over 10GB in size which is the limit imposed by MS on Express.  Kaspersky is absolutely no help as support says they dont support SQL and cannot tell us which tables we can clear, etc to get our server running again.  We have even posed the question whether MySQL is supported, etc to no avail.

Does anyone have any ideas?  I am beyond frustrated with Kaspersky support.

Thanks,

Eric

SQL shared drives

$
0
0

Hi,

We have a SQL server running on Server 2008 R2 with SQL 2008. I am looking at upgrading the server (side-by-side) to OS 2012 and SQL 2014. So I have setup the new Server and SQL 2014 has been installed on the new server. I have attached the LUNs that hold data, log, backup and full text. So now both servers can see these four LUNs mapped as local drives and I could access the drives from both servers until the last few days when suddenly on the new sever, the backups LUN can't be access from the new server at all (and reporting error) and the data LUN is reporting error. I can still access both LUNs from the old server and it is not reporting any issues. I ran a scan from the new server and then a repair. When I run repair it tells me there is no corruption and there is no error but it still shows a red cross next to the drive in...


How to start a task.

$
0
0

I would've said how to Trigger a task - but that would've suggested just triggers ... so how to start a task ...

Background:

a standalone app on tablet devices is sending customer orders to the cloud - a task on a local machine is bringing those orders down as CSV files - it runs this every 15 minutes (should be fine - they're not time critical). The sales rep taking the order has authority to overwrite pricing.

I have a SQL script (just a script atm) to convert that CSV file into an order file our ERP system can recognise - it then renames the CSV file so it doesn't convert again.

Our ERP system has a scheduled task to look for order files every 5 minutes. It imports orders - products and qty - but not prices.

I then need to run a script to check the price data in the ERP order against the original order (no problem as I have access...

Is it possible to call dll from sql triggers ?

$
0
0

Hi there,

Is it possible to call a dll in SQL triggers ?

If yes how to call  ?

Is this is a good idea to call dll from SQL trigger ?

Please help me.

Thanks in advance.

SQL Server experrt

$
0
0

Can you clone SQL Server 2014 on Hyper V with out any issue? If so how?

Hyper Virtual Machine, Windows 2012R2 , SQL 2014,

EDI & SSIS Basics

$
0
0

We have a small EDI task where we need to download a zip file daily, expand it, and each file needs imported into its own table.  Googling the answer's just mind boggling.  It seems a straightforward task that lots of people are doing already.  Is there a concise tutorial that will show me how to do this?

Update existing and next incoming entries in SQL server 2008

$
0
0

Hello,

I have a SQL table with some existing data. In that I have a column named "Name". For example say I have one entry for that column as "Thilak". Suppose if a next entry comes with same name i.e "Thilak",  I want to rename the existing "Thilak" as "Thilak_1" and new entry as "Thilak_2".

How to do this ?

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>