我的 c://config
中有一个设置。 config 文件
sections.config
包含此内容 :
<filelocation>d://mydata</filelocation>
现在我要在我的 SQL Server 2008 存储程序中获取 < code> d://mydata 文件路径, 这将将此位置作为文件创建路径的输入 。
请建议!
我的 c://config
中有一个设置。 config 文件
sections.config
包含此内容 :
<filelocation>d://mydata</filelocation>
现在我要在我的 SQL Server 2008 存储程序中获取 < code> d://mydata 文件路径, 这将将此位置作为文件创建路径的输入 。
请建议!
简化示例, 但您可以做类似的事情( 假设您可以从 SQL 服务器读取文件) :
declare @table table (Value XML)
insert @table
select a.* from openrowset (bulk C:config , single_clob) a
select * from @table
select Value.value( filelocation[1] , varchar(100) )
from @table
基于文件结构的扩展 。
I need to declare 12 decimal variables, corresponding to each month s year, with a cursor I sum values to this variables, then later I Update some sales information. I don t know if sql server has ...
Does anyone have experience with using indexed view in MS SQL Server 2008? I am trying to find out how does indexed view affect performance of insert / update statements, that are adding / updating ...
In Microsoft SQL Server Management Studio 2008, is there a secret to be able to edit one row based on a key? There s an option to do "Edit Top 200 Rows", but what if I want to select some other row ...
Has anyone any experience moving a number of identical SQL Server databases (with unique data) from individual local servers to a single internet based server? We currently have 10 companies using ...
While altering a table (removing a column) in SQL Server 2008, I clicked the Generate Change Script button and I noticed that the change script it generated drops the column, says "go" and then runs ...
I have a Money column in my SQL Server 2008 table. In my below query how can I round it to nearest 5$ select FineAmount from tickets Thanks
I love the new DATE datatype in SQL Server 2008, but when I compare a DATE field to a DATETIME field on a linked server (SQL 2005, in this case), like this: DECLARE @MyDate DATE SET @MyDate = CONVERT(...
I am starting a project to create an "object versioning" feature for our software (.NET 3.5 / SQL Server 2008), basically it needs to do this: a user is looking at a customer: last name is "Smith-...