sql-server-2008-r2

Display Images from Windows Folder in SSRS Report

≯℡__Kan透↙ 提交于 2019-12-23 03:15:17
问题 I'm trying to make a report in BIDS (2008) that will include external images. We want to use the report to proof the images & other info before we approve our flyer for printing. I've done a bit of searching, but haven't gotten the help I need yet. The path to the images will be image specific, like "\\NETWORKSERVER\ServerD\Docs\Flyer's Images\Quarterly Flyer\ImageName.png" The URL works fine when I paste it in the search bar of my local pc or the server that has BIDS installed on it, but the

Display Images from Windows Folder in SSRS Report

我们两清 提交于 2019-12-23 03:15:06
问题 I'm trying to make a report in BIDS (2008) that will include external images. We want to use the report to proof the images & other info before we approve our flyer for printing. I've done a bit of searching, but haven't gotten the help I need yet. The path to the images will be image specific, like "\\NETWORKSERVER\ServerD\Docs\Flyer's Images\Quarterly Flyer\ImageName.png" The URL works fine when I paste it in the search bar of my local pc or the server that has BIDS installed on it, but the

instance servername sql server 2012

落花浮王杯 提交于 2019-12-23 02:56:48
问题 Hello I have installed management studio 2005(x64) alse I have microsoft sql server 2012 in my pc. But cant connect server due to dont know server name. (if sql server 2008 express were in my pc, default servername would be "./sqlexpress") How can I connect server in my own pc ? And also I wanted to know; Should I use another management studio ? can there be a problem use ms2005 with sqlserver 2012 ? Do you recemmond other studio ? (with exp. reason please) Thank you anyone who just feel to

Convert Boolean text search into SQL Query WHERE Clause

女生的网名这么多〃 提交于 2019-12-23 02:52:17
问题 We're looking to implement a Search query that will do a full-text search on a specific column in SQL. We're open to do it in SQL directly or in C# as suggested by TomC below. The query will be entered by users like - (A AND B) OR (C AND D) We want to convert this search text into SQL query as below - WHERE (col LIKE '%A%' AND col LIKE '%B%') OR (col LIKE '%C%' AND col LIKE '%D%') Please advise what would be the best approach to handle this. 回答1: I do not know if this is the best regex

Use sql server Convert Function to convert hijri to gregorian date

烈酒焚心 提交于 2019-12-23 02:43:10
问题 I have simple table on my sql server and in my table have a date field,and into date field save a hijri date ,i want use the sql server convert function to convert hijri date to gregorian date . how can i do this? i use this query in sql server: update k set time=CONVERT(datetime,GETDATE(),101) and i insert this "1392/4/21" in time field ,and when convert sql server return this "2014/11/5" ,when i use online date convertor,and insert this "2014/11/5" ,convert date is "1393/2/14" !!is this the

In data Insert script how to put parent record's id in child record?

社会主义新天地 提交于 2019-12-23 01:11:13
问题 I m creating a database insert script which involve a parent and a child table. Parent record's auto-generated id will be inserted to child record as reference key. Question is I don't know in script how to tell SQL server to use inserted parent records's id in child table record as reference. Please help me how to put parent id in child insert statement. 回答1: At the top of your code do this: DECLARE @parent_id int Then, immediately after you do the insert into the parent table, do this:

Using SQL Server application locks to solve locking requirements

允我心安 提交于 2019-12-23 01:07:07
问题 I have a large application based on Dynamics CRM 2011 that in various places has code that must query for a record based upon some criteria and create it if it doesn't exist else update it. An example of the kind of thing I am talking about would be similar to this: stk_balance record = context.stk_balanceSet.FirstOrDefault(x => x.stk_key == id); if(record == null) { record = new stk_balance(); record.Id = Guid.NewGuid(); record.stk_value = 100; context.AddObject(record); } else { record.stk

Convert comma delimited string to table or array in sql server 2008 without using dbo.split

十年热恋 提交于 2019-12-22 18:43:23
问题 How to convert comma delimited string to table or array in sql server 2008 without using dbo.split function because the system doesn’t support this function? Eg of string: ’12,14,15’ Change this to *Table column* 12 14 15 Or array=[12,14,15] I would like to insert comma separated string values into a table ultimately. Thanks 回答1: dbo.split is probably user defined function, so you need to define it. Otherwise you can use XML + CROSS APPLY : Demo DECLARE @string NVARCHAR(100) = '12,14,15'

How to get the row count for views from a database?

亡梦爱人 提交于 2019-12-22 17:52:54
问题 I'm trying to make a customized view that gets me the row count for all the views and tables of a database. Getting the count of table is damn in SQL Server SELECT TABLE_SCHEMA, TABLE_NAME = TABLES.TABLE_NAME, RECORD_COUNT = MAX(SYSINDEXES.ROWS) FROM SYS.SYSINDEXES "SYSINDEXES", INFORMATION_SCHEMA.TABLES "TABLES" WHERE TABLES.TABLE_NAME = OBJECT_NAME(SYSINDEXES.ID) AND TABLES.TABLE_TYPE = 'BASE TABLE' GROUP BY TABLES.TABLE_SCHEMA, TABLES.TABLE_NAME Now, I need to get the rowcount for VIEWS I

How do I get MS LightSwitch to recognize my View?

陌路散爱 提交于 2019-12-22 13:51:39
问题 I've created a View from a table in another database. I have dbo rights to the databases so viewing and updating is not a problem. This particular View did not have an "id" column. So I added one to the View by using ROW_NUMBER. Now I had a problem with a table, in the same database, not showing up in LightSwitch but that was solved by changing the id column to be NOT NULL. I haven't done any real manipulation in LightSwitch. I'm still in the Import Your Data Source stage (ie. very beginning)