SQL Server Express does not have the Tasks -> Import Data option that other editions of SQL Server has. Has anyone come across a free tool to import data?
I understand I can use the bulk import but I have run into a security issue with it and would like a quick and a dirty way of importing a csv file to a sql express table.
...
I have a complex SQL problem in MS SQL Server, and in drawing on a piece of paper I realized that I could think of it as a single bar filled with rectangles, each rectangle having segments with different Z orders. In reality it has nothing to do with z order or graphics at all, but more to do with some complex business rules that would ...
I have read this article from High Scalability about Stack Overflow and other large websites. Many large high traffic .NET sites such as plentyoffish.com, MySpace and Stack Overflow all use .NET technologies and use SQL Server for their database. In the article it says a source in Stack Overflow said:
As you add more and more databas...
What are the ways of protecting a SQL Server without using third party tools and not lose performance?
[EDIT]
I don't want to see,change,copy and attach,backup and restore to other servers.
Only my application could do those operations. Even from System Admins
...
I'm trying to select records with a statement
SELECT *
FROM A
WHERE
LEFT(B, 5) IN
(SELECT * FROM
(SELECT LEFT(A.B,5), COUNT(DISTINCT A.C) c_count
FROM A
GROUP BY LEFT(B,5)
) p1
WHERE p1.c_count = 1
)
AND C IN
(SELECT * FROM
(SELECT A.C , COUNT(DISTINCT L...
I am writing a stored procedure for displaying month and year. It is working, but it is not returning the rows in the desired order.
ALTER procedure [dbo].[audioblog_getarchivedates]
as
begin
select DateName(Month,a.createddate) + ' ' + DateName(Year,a.createddate) as ArchiveDate
from audio_blog a
group by DateName(Month,a.creat...
I have an DLL which is constantly connected to a SQL Server instance. Normal users can use the dll, but they need to give their own usernames & passwords. The dll would still be connected using a pre-defined username and password.
Basically I need a way to check if a username and password has access to the database. Is there a way to d...
How to detect if a string contains special characters like #,$,^,&,*,@,! etc in SQL server 2005?
...
I want to discover SQL Server instance in a given range of IP address using C#. How do I do this.
Thanks in advance.
...
How to detect if a string contains atleast a number (digit) in SQL server 2005?
...
I cannot connect to the SQL Server instance if I do not start management studio as a administrator. I am running windows 7, SQL Server 2008, and Management Studio 10.0. If I run as a normal user, the error I get is:
Cannot connect to ..
Additional information: login failed for user 'COMPUTERNAME\MyUserName'. (Microsoft SQL Server, E...
Hi.
There is a problem that bother me for some time.
I have an asp.net mvc that uses NHibernate for modeling the database. The infrastructure is the following:
Windows 2008 R2 for all virtual machines.
IIS 7.5 is working on one virtual machine.
Sql Server 2008 is working on another virtual machine. We have couple of databases, two that s...
I have created one user named "tuser" with create database rights in SQL server 2005.
and given the 'db_owner' database role of master and msdb database to "tuser".
From this user login when I run the script for create database then it will create new database.
But "tuser" don't have access that newly created database generated from scr...
I need a function, but cannot seem to get it quite right, I have looked at examples here and elsewhere and cannot seem to get this just right, I need an optional item to be included in my query, I have this query (which works):
SELECT TOP 100 PERCENT SKU, Description, LEN(CONVERT(VARCHAR
(1000),Description)) AS LenDesc FROM tblItem
WHER...
Is there a better way of merging overlapping date intervals?
The solution I came up with is so simple that now I wonder if someone else has a better idea of how this could be done.
/***** DATA EXAMPLE *****/
DECLARE @T TABLE (d1 DATETIME, d2 DATETIME)
INSERT INTO @T (d1, d2)
SELECT '2010-01-01','2010-03-31' UNION SELECT '2010-04...
Basically, I have two tables, Table A contains the actual items that I care to get out, and Table B is used for language translations.
So, for example, Table A contains the actual content. Anytime text is used within the table, instead of storing actual varchar values, ids are stored that relate back to text stored in Table B. This allo...
Login failed for user ''. The user is not associated with a trusted SQL Server connection.
When I try to use IIS locally instead of Cassini I get this error.
The ASP.NET MVC 1.0 site is running on WinXP.
The database is local and has SQL Server and Windows Authentification mode enabled.
The website runs OK using Cassini, with the sam...
I will get the error below randomly when I'm running an asp.net application I am working on. Usually it will happen ever 3 days or so and I am forced to restart my machine to fix it but it's been getting worse and now a reboot dosn't seem to fix anything. I'm running the application on my machine and doing a lot of debugging. All inte...
Given some arbitrary SQL I would like to get the data types of the returned columns. The statement might join many tables, views, TVFs, etc. I know I could create a view based on the query and get the datatypes from that, hoping there's a quicker way. Only think I've been able to think of is writing a .net utility to run the SQL and e...
Hello,
I am using a custom forms authentication component in SSRS 2005. Everything works great with that except for authorization. I was hoping to be able to configure authorization so that it would control which features were available within the application. So if I wanted the user to only have access to the report builder, I could...